Sha256: 2ff59777eebc632d22118aac94cb63e3af031cdaa34eb66dd23a3171a663aec5
Contents?: true
Size: 642 Bytes
Versions: 38
Compression:
Stored size: 642 Bytes
Contents
#ifndef Rice__Require_Guard__hpp_ #define Rice__Require_Guard__hpp_ /*! \def RICE_REQUIRE_GUARD * \brief Put this inside your Init_module function to keep it from * being required more than once with the same name (if you use * Rice, and your module is initialized more than once, an * exception will be thrown). */ #define RICE_REQUIRE_GUARD \ static bool Rice__module_initialized = false; \ if(Rice__module_initialized) \ { \ return; \ } \ /* TODO: If module initialization fails, it's not possible to */ \ /* retry */ \ Rice__module_initialized = true #endif // Rice__Require_Guard__hpp_
Version data entries
38 entries across 38 versions & 6 rubygems