00001 #ifndef _DYN_LOAD_H 00002 #define _DYN_LOAD_H 00003 00004 #include "Node.h" 00005 00007 bool UpdateDynLoad(); 00008 00010 bool InitDynLoad(); 00011 00012 extern "C" { 00013 void RuntimeRegisterObject( const char * sName, ProducerFunct t ); 00014 }; 00015 00017 #define REGISTER_SHARED( type ) \ 00018 REGISTER_CLASS( type ); \ 00019 extern "C" { \ 00020 int RegisterAllInShared() { \ 00021 printf( "Loading: %s\n", #type ); \ 00022 RuntimeRegisterObject( #type, Produce##type ); } \ 00023 }; 00024 00025 #endif 00026 00027 /* 00028 Copyright (c) 2008 Charles Lohr 00029 00030 Permission is hereby granted, free of charge, to any person obtaining a copy 00031 of this software and associated documentation files (the "Software"), to deal 00032 in the Software without restriction, including without limitation the rights 00033 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00034 copies of the Software, and to permit persons to whom the Software is 00035 furnished to do so, subject to the following conditions: 00036 00037 The above copyright notice and this permission notice shall be included in 00038 all copies or substantial portions of the Software. 00039 00040 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00041 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00042 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00043 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00044 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00045 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00046 THE SOFTWARE. 00047 */