Rice  1.5.2
 All Classes Files Functions Variables Typedefs Friends Pages
Require_Guard.hpp
1 #ifndef Rice__Require_Guard__hpp_
2 #define Rice__Require_Guard__hpp_
3 
10 #define RICE_REQUIRE_GUARD \
11  static bool Rice__module_initialized = false; \
12  if(Rice__module_initialized) \
13  { \
14  return; \
15  } \
16  /* TODO: If module initialization fails, it's not possible to */ \
17  /* retry */ \
18  Rice__module_initialized = true
19 
20 #endif // Rice__Require_Guard__hpp_
21