summaryrefslogtreecommitdiff
path: root/n/avr/common/common.h
diff options
context:
space:
mode:
authorschodet2006-03-11 11:02:57 +0000
committerschodet2006-03-11 11:02:57 +0000
commit2f3a905da7a450c200ea631ce9669e9258678d3a (patch)
treed46c2495c34ef7590210c44aea783ae49b95a5f5 /n/avr/common/common.h
parenta097d1dd557743d1f379dfaefaf8fdce7af078c4 (diff)
Permet la récupération des arguments sur host.
Correction de bug avec les asserts.
Diffstat (limited to 'n/avr/common/common.h')
-rw-r--r--n/avr/common/common.h8
1 files changed, 8 insertions, 0 deletions
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 */