コード例 #1
0
ファイル: NekoVM.cpp プロジェクト: Gemioli/lime
	void NekoVM::Execute (const char *modulePath) {
		
		neko_vm *vm;
		
		neko_global_init ();
		vm = neko_vm_alloc (NULL);
		neko_vm_select (vm);
		
		std_main ();
		
		value mload = neko_default_loader(NULL, 0);
		
		value args2[] = { alloc_string(modulePath), mload };
		value exc = NULL;
		
		val_callEx(mload,val_field(mload,val_id("loadmodule")),args2,2,&exc);
		
		if( exc != NULL ) {
			
			report(vm,exc,1);
			//return 1;
		}
		//return 0;
		
	}
コード例 #2
0
ファイル: xcross.c プロジェクト: 0b1kn00b/xcross
void neko_standalone_init() {
#	ifndef CONSOLE_MODE
	sys_init();
	ui_main();
#	endif
	std_main();
	regexp_main();
	zlib_main();
}
コード例 #3
0
ファイル: Init.cpp プロジェクト: cobrajs/hxcpp
// Called when static linking to bring in the required symbols and initaliaze
int std_register_prims()
{
   static bool init = false;
   if (init) return 0;
   init = true;

   std_main();
    return
        __file_prims()
      + __misc_prims()
      + __process_prims()
      + __random_prims()
      + __socket_prims()
      + __string_prims()
      + __sys_prims()
      + __xml_prims();

}