From 2f3a905da7a450c200ea631ce9669e9258678d3a Mon Sep 17 00:00:00 2001 From: schodet Date: Sat, 11 Mar 2006 11:02:57 +0000 Subject: Permet la récupération des arguments sur host. Correction de bug avec les asserts. --- n/avr/common/common.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'n/avr/common/common.h') diff --git a/n/avr/common/common.h b/n/avr/common/common.h index 54ed501..1097942 100644 --- a/n/avr/common/common.h +++ b/n/avr/common/common.h @@ -38,6 +38,8 @@ typedef int32_t i32; # define assert(x) +# define avr_init(argc, argv) do { } while (0) + #else /* HOST */ # ifdef NDEBUG @@ -60,6 +62,12 @@ typedef int32_t i32; __ASSERT_FUNCTION), 0))) # endif +/** Initialise host module. */ +void +host_init (int argc, char **argv); + +#define avr_init host_init + #endif /* HOST */ #endif /* common_h */ -- cgit v1.2.3