Created
April 12, 2010 07:08
-
-
Save slaskis/363345 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** /Users/slaskis/test/src/Main.cpp 2010-04-12 09:02:24 +0200 | |
--- /Users/slaskis/test2/src/Main.cpp 2010-04-12 09:04:10 +0200 | |
*************** | |
*** 37,48 **** | |
} | |
}; | |
Dynamic properties = _Function_1_1::Block(); | |
struct _Function_1_2{ | |
inline static Dynamic Block( ){ | |
hx::Anon __result = hx::Anon_obj::Create(); | |
__result->Add(HX_STRING(L"fileName",8) , HX_STRING(L"Main.hx",7)); | |
! __result->Add(HX_STRING(L"lineNumber",10) , 11); | |
__result->Add(HX_STRING(L"className",9) , HX_STRING(L"Main",4)); | |
__result->Add(HX_STRING(L"methodName",10) , HX_STRING(L"main",4)); | |
return __result; | |
--- 37,49 ---- | |
} | |
}; | |
Dynamic properties = _Function_1_1::Block(); | |
+ double _float = ((properties == null())) ? Dynamic( null() ) : Dynamic( properties->__Field(HX_STRING(L"float",5)) ); | |
struct _Function_1_2{ | |
inline static Dynamic Block( ){ | |
hx::Anon __result = hx::Anon_obj::Create(); | |
__result->Add(HX_STRING(L"fileName",8) , HX_STRING(L"Main.hx",7)); | |
! __result->Add(HX_STRING(L"lineNumber",10) , 9); | |
__result->Add(HX_STRING(L"className",9) , HX_STRING(L"Main",4)); | |
__result->Add(HX_STRING(L"methodName",10) , HX_STRING(L"main",4)); | |
return __result; | |
*************** | |
*** 47,54 **** | |
return __result; | |
} | |
}; | |
! ::haxe::Log_obj::trace((HX_STRING(L"property value:",15) + ((properties == null())) ? Dynamic( null() ) : Dynamic( properties->__Field(HX_STRING(L"float",5)) )),_Function_1_2::Block()); | |
} | |
return null(); | |
} | |
--- 48,55 ---- | |
return __result; | |
} | |
}; | |
! ::haxe::Log_obj::trace((HX_STRING(L"reflection read float value:",28) + _float),_Function_1_2::Block()); | |
} | |
return null(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <hxcpp.h> | |
#ifndef INCLUDED_Main | |
#include <Main.h> | |
#endif | |
#ifndef INCLUDED_haxe_Log | |
#include <haxe/Log.h> | |
#endif | |
Void Main_obj::__construct() | |
{ | |
return null(); | |
} | |
Main_obj::~Main_obj() { } | |
Dynamic Main_obj::__CreateEmpty() { return new Main_obj; } | |
hx::ObjectPtr< Main_obj > Main_obj::__new() | |
{ hx::ObjectPtr< Main_obj > result = new Main_obj(); | |
result->__construct(); | |
return result;} | |
Dynamic Main_obj::__Create(hx::DynamicArray inArgs) | |
{ hx::ObjectPtr< Main_obj > result = new Main_obj(); | |
result->__construct(); | |
return result;} | |
Void Main_obj::main( ){ | |
{ | |
__SAFE_POINT | |
struct _Function_1_1{ | |
inline static Dynamic Block( ){ | |
hx::Anon __result = hx::Anon_obj::Create(); | |
__result->Add(HX_STRING(L"str",3) , HX_STRING(L"String",6)); | |
__result->Add(HX_STRING(L"float",5) , 0.45); | |
return __result; | |
} | |
}; | |
Dynamic properties = _Function_1_1::Block(); | |
struct _Function_1_2{ | |
inline static Dynamic Block( ){ | |
hx::Anon __result = hx::Anon_obj::Create(); | |
__result->Add(HX_STRING(L"fileName",8) , HX_STRING(L"Main.hx",7)); | |
__result->Add(HX_STRING(L"lineNumber",10) , 11); | |
__result->Add(HX_STRING(L"className",9) , HX_STRING(L"Main",4)); | |
__result->Add(HX_STRING(L"methodName",10) , HX_STRING(L"main",4)); | |
return __result; | |
} | |
}; | |
::haxe::Log_obj::trace((HX_STRING(L"property value:",15) + ((properties == null())) ? Dynamic( null() ) : Dynamic( properties->__Field(HX_STRING(L"float",5)) )),_Function_1_2::Block()); | |
} | |
return null(); | |
} | |
STATIC_HX_DEFINE_DYNAMIC_FUNC0(Main_obj,main,(void)) | |
Main_obj::Main_obj() | |
{ | |
} | |
void Main_obj::__Mark() | |
{ | |
} | |
Dynamic Main_obj::__Field(const ::String &inName) | |
{ | |
switch(inName.length) { | |
case 4: | |
if (!memcmp(inName.__s,L"main",sizeof(wchar_t)*4) ) { return main_dyn(); } | |
} | |
return super::__Field(inName); | |
} | |
Dynamic Main_obj::__SetField(const ::String &inName,const Dynamic &inValue) | |
{ | |
return super::__SetField(inName,inValue); | |
} | |
void Main_obj::__GetFields(Array< ::String> &outFields) | |
{ | |
super::__GetFields(outFields); | |
}; | |
static ::String sStaticFields[] = { | |
HX_STRING(L"main",4), | |
String(null()) }; | |
static ::String sMemberFields[] = { | |
String(null()) }; | |
static void sMarkStatics() { | |
}; | |
Class Main_obj::__mClass; | |
void Main_obj::__register() | |
{ | |
Static(__mClass) = hx::RegisterClass(HX_STRING(L"Main",4), hx::TCanCast< Main_obj> ,sStaticFields,sMemberFields, | |
&__CreateEmpty, &__Create, | |
&super::__SGetClass(), 0, sMarkStatics); | |
} | |
void Main_obj::__boot() | |
{ | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <hxcpp.h> | |
#ifndef INCLUDED_Main | |
#include <Main.h> | |
#endif | |
#ifndef INCLUDED_haxe_Log | |
#include <haxe/Log.h> | |
#endif | |
Void Main_obj::__construct() | |
{ | |
return null(); | |
} | |
Main_obj::~Main_obj() { } | |
Dynamic Main_obj::__CreateEmpty() { return new Main_obj; } | |
hx::ObjectPtr< Main_obj > Main_obj::__new() | |
{ hx::ObjectPtr< Main_obj > result = new Main_obj(); | |
result->__construct(); | |
return result;} | |
Dynamic Main_obj::__Create(hx::DynamicArray inArgs) | |
{ hx::ObjectPtr< Main_obj > result = new Main_obj(); | |
result->__construct(); | |
return result;} | |
Void Main_obj::main( ){ | |
{ | |
__SAFE_POINT | |
struct _Function_1_1{ | |
inline static Dynamic Block( ){ | |
hx::Anon __result = hx::Anon_obj::Create(); | |
__result->Add(HX_STRING(L"str",3) , HX_STRING(L"String",6)); | |
__result->Add(HX_STRING(L"float",5) , 0.45); | |
return __result; | |
} | |
}; | |
Dynamic properties = _Function_1_1::Block(); | |
double _float = ((properties == null())) ? Dynamic( null() ) : Dynamic( properties->__Field(HX_STRING(L"float",5)) ); | |
struct _Function_1_2{ | |
inline static Dynamic Block( ){ | |
hx::Anon __result = hx::Anon_obj::Create(); | |
__result->Add(HX_STRING(L"fileName",8) , HX_STRING(L"Main.hx",7)); | |
__result->Add(HX_STRING(L"lineNumber",10) , 9); | |
__result->Add(HX_STRING(L"className",9) , HX_STRING(L"Main",4)); | |
__result->Add(HX_STRING(L"methodName",10) , HX_STRING(L"main",4)); | |
return __result; | |
} | |
}; | |
::haxe::Log_obj::trace((HX_STRING(L"reflection read float value:",28) + _float),_Function_1_2::Block()); | |
} | |
return null(); | |
} | |
STATIC_HX_DEFINE_DYNAMIC_FUNC0(Main_obj,main,(void)) | |
Main_obj::Main_obj() | |
{ | |
} | |
void Main_obj::__Mark() | |
{ | |
} | |
Dynamic Main_obj::__Field(const ::String &inName) | |
{ | |
switch(inName.length) { | |
case 4: | |
if (!memcmp(inName.__s,L"main",sizeof(wchar_t)*4) ) { return main_dyn(); } | |
} | |
return super::__Field(inName); | |
} | |
Dynamic Main_obj::__SetField(const ::String &inName,const Dynamic &inValue) | |
{ | |
return super::__SetField(inName,inValue); | |
} | |
void Main_obj::__GetFields(Array< ::String> &outFields) | |
{ | |
super::__GetFields(outFields); | |
}; | |
static ::String sStaticFields[] = { | |
HX_STRING(L"main",4), | |
String(null()) }; | |
static ::String sMemberFields[] = { | |
String(null()) }; | |
static void sMarkStatics() { | |
}; | |
Class Main_obj::__mClass; | |
void Main_obj::__register() | |
{ | |
Static(__mClass) = hx::RegisterClass(HX_STRING(L"Main",4), hx::TCanCast< Main_obj> ,sStaticFields,sMemberFields, | |
&__CreateEmpty, &__Create, | |
&super::__SGetClass(), 0, sMarkStatics); | |
} | |
void Main_obj::__boot() | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment