diff options
Diffstat (limited to 'Modules/CheckVariableExists.c')
-rw-r--r-- | Modules/CheckVariableExists.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/CheckVariableExists.c b/Modules/CheckVariableExists.c new file mode 100644 index 0000000..e4d1e8d --- /dev/null +++ b/Modules/CheckVariableExists.c @@ -0,0 +1,16 @@ +#ifdef CHECK_VARIABLE_EXISTS + +extern int CHECK_VARIABLE_EXISTS; + +int main() +{ + int* p; + p = &CHECK_VARIABLE_EXISTS; + return 0; +} + +#else /* CHECK_VARIABLE_EXISTS */ + +# error "CHECK_VARIABLE_EXISTS has to specify the variable" + +#endif /* CHECK_VARIABLE_EXISTS */ |