00001 #ifndef Exc_Ruby__require_guard__hpp_ 00002 #define Exc_Ruby__require_guard__hpp_ 00003 00010 #define EXC_RUBY_REQUIRE_GUARD \ 00011 static bool Exc_Ruby__module_initialized = false; \ 00012 if(Exc_Ruby__module_initialized) \ 00013 { \ 00014 return; \ 00015 } \ 00016 /* TODO: If module initialization fails, it's not possible to */ \ 00017 /* retry */ \ 00018 Exc_Ruby__module_initialized = true 00019 00020 #endif // Exc_Ruby__require_guard__hpp_ 00021