#include"dao_Greeting.h" #ifdef __cplusplus extern "C"{ #endif /* /usr/include/sys/_types.h */ static DaoTypeBase __darwin_pthread_handler_rec_Typer = { "__darwin_pthread_handler_rec", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_pthread_handler_rec_Typer = & __darwin_pthread_handler_rec_Typer; /* /usr/include/sys/_types.h */ static DaoTypeBase _opaque_pthread_attr_t_Typer = { "_opaque_pthread_attr_t", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao__opaque_pthread_attr_t_Typer = & _opaque_pthread_attr_t_Typer; /* /usr/include/sys/_types.h */ static DaoTypeBase _opaque_pthread_cond_t_Typer = { "_opaque_pthread_cond_t", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao__opaque_pthread_cond_t_Typer = & _opaque_pthread_cond_t_Typer; /* /usr/include/sys/_types.h */ static DaoTypeBase _opaque_pthread_condattr_t_Typer = { "_opaque_pthread_condattr_t", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao__opaque_pthread_condattr_t_Typer = & _opaque_pthread_condattr_t_Typer; /* /usr/include/sys/_types.h */ static DaoTypeBase _opaque_pthread_mutex_t_Typer = { "_opaque_pthread_mutex_t", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao__opaque_pthread_mutex_t_Typer = & _opaque_pthread_mutex_t_Typer; /* /usr/include/sys/_types.h */ static DaoTypeBase _opaque_pthread_mutexattr_t_Typer = { "_opaque_pthread_mutexattr_t", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao__opaque_pthread_mutexattr_t_Typer = & _opaque_pthread_mutexattr_t_Typer; /* /usr/include/sys/_types.h */ static DaoTypeBase _opaque_pthread_once_t_Typer = { "_opaque_pthread_once_t", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao__opaque_pthread_once_t_Typer = & _opaque_pthread_once_t_Typer; /* /usr/include/sys/_types.h */ static DaoTypeBase _opaque_pthread_rwlock_t_Typer = { "_opaque_pthread_rwlock_t", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao__opaque_pthread_rwlock_t_Typer = & _opaque_pthread_rwlock_t_Typer; /* /usr/include/sys/_types.h */ static DaoTypeBase _opaque_pthread_rwlockattr_t_Typer = { "_opaque_pthread_rwlockattr_t", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao__opaque_pthread_rwlockattr_t_Typer = & _opaque_pthread_rwlockattr_t_Typer; /* /usr/include/sys/_types.h */ static DaoTypeBase _opaque_pthread_t_Typer = { "_opaque_pthread_t", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao__opaque_pthread_t_Typer = & _opaque_pthread_t_Typer; /* /usr/include/stdio.h */ static DaoTypeBase __sbuf_Typer = { "__sbuf", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___sbuf_Typer = & __sbuf_Typer; /* /usr/include/stdio.h */ static DaoTypeBase __sFILEX_Typer = { "__sFILEX", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___sFILEX_Typer = & __sFILEX_Typer; /* /usr/include/stdio.h */ static DaoTypeBase __sFILE_Typer = { "__sFILE", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___sFILE_Typer = & __sFILE_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_i386_thread_state_Typer = { "__darwin_i386_thread_state", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_i386_thread_state_Typer = & __darwin_i386_thread_state_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_fp_control_Typer = { "__darwin_fp_control", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_fp_control_Typer = & __darwin_fp_control_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_fp_status_Typer = { "__darwin_fp_status", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_fp_status_Typer = & __darwin_fp_status_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_mmst_reg_Typer = { "__darwin_mmst_reg", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_mmst_reg_Typer = & __darwin_mmst_reg_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_xmm_reg_Typer = { "__darwin_xmm_reg", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_xmm_reg_Typer = & __darwin_xmm_reg_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_i386_float_state_Typer = { "__darwin_i386_float_state", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_i386_float_state_Typer = & __darwin_i386_float_state_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_i386_exception_state_Typer = { "__darwin_i386_exception_state", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_i386_exception_state_Typer = & __darwin_i386_exception_state_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_x86_debug_state32_Typer = { "__darwin_x86_debug_state32", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_x86_debug_state32_Typer = & __darwin_x86_debug_state32_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_x86_thread_state64_Typer = { "__darwin_x86_thread_state64", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_x86_thread_state64_Typer = & __darwin_x86_thread_state64_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_x86_float_state64_Typer = { "__darwin_x86_float_state64", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_x86_float_state64_Typer = & __darwin_x86_float_state64_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_x86_exception_state64_Typer = { "__darwin_x86_exception_state64", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_x86_exception_state64_Typer = & __darwin_x86_exception_state64_Typer; /* /usr/include/mach/i386/_structs.h */ static DaoTypeBase __darwin_x86_debug_state64_Typer = { "__darwin_x86_debug_state64", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_x86_debug_state64_Typer = & __darwin_x86_debug_state64_Typer; /* /usr/include/i386/_structs.h */ static DaoTypeBase __darwin_mcontext32_Typer = { "__darwin_mcontext32", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_mcontext32_Typer = & __darwin_mcontext32_Typer; /* /usr/include/i386/_structs.h */ static DaoTypeBase __darwin_mcontext64_Typer = { "__darwin_mcontext64", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_mcontext64_Typer = & __darwin_mcontext64_Typer; /* /usr/include/sys/_structs.h */ static DaoTypeBase __darwin_sigaltstack_Typer = { "__darwin_sigaltstack", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_sigaltstack_Typer = & __darwin_sigaltstack_Typer; /* /usr/include/sys/_structs.h */ static DaoTypeBase __darwin_ucontext_Typer = { "__darwin_ucontext", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___darwin_ucontext_Typer = & __darwin_ucontext_Typer; /* /usr/include/sys/signal.h */ static DaoTypeBase sigval_Typer = { "sigval", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_sigval_Typer = & sigval_Typer; /* /usr/include/sys/signal.h */ static DaoTypeBase sigevent_Typer = { "sigevent", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_sigevent_Typer = & sigevent_Typer; /* /usr/include/sys/signal.h */ static DaoTypeBase __siginfo_Typer = { "__siginfo", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___siginfo_Typer = & __siginfo_Typer; /* /usr/include/sys/signal.h */ static DaoTypeBase __sigaction_u_Typer = { "__sigaction_u", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___sigaction_u_Typer = & __sigaction_u_Typer; /* /usr/include/sys/signal.h */ static DaoTypeBase __sigaction_Typer = { "__sigaction", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao___sigaction_Typer = & __sigaction_Typer; /* /usr/include/sys/signal.h */ static DaoTypeBase sigaction_Typer = { "sigaction", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_sigaction_Typer = & sigaction_Typer; /* /usr/include/sys/signal.h */ static DaoTypeBase sigvec_Typer = { "sigvec", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_sigvec_Typer = & sigvec_Typer; /* /usr/include/sys/signal.h */ static DaoTypeBase sigstack_Typer = { "sigstack", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_sigstack_Typer = & sigstack_Typer; /* /usr/include/sys/_structs.h */ static DaoTypeBase timeval_Typer = { "timeval", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_timeval_Typer = & timeval_Typer; /* /usr/include/sys/resource.h */ static DaoTypeBase rusage_Typer = { "rusage", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_rusage_Typer = & rusage_Typer; /* /usr/include/sys/resource.h */ static DaoTypeBase rlimit_Typer = { "rlimit", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_rlimit_Typer = & rlimit_Typer; /* /usr/include/sys/wait.h */ static DaoTypeBase wait_Typer = { "wait", NULL, NULL, NULL, { NULL }, { NULL }, NULL, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_wait_Typer = & wait_Typer; /* ./greeting.h */ static DaoNumItem dao_otto_Nums[] = { { NULL, 0, 0 } }; static void dao_otto_otto_dao_2( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_otto_otto( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_otto_geta( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_otto_vtest( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_otto_operator_43_( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_otto_SETI_( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_otto_test( DaoProcess *_proc, DaoValue *_p[], int _n ); static DaoFuncItem dao_otto_Meths[] = { { dao_otto_otto_dao_2, "otto( b :int =123 )=>otto" }, { dao_otto_otto, "otto( b :int =123 )=>otto" }, { dao_otto_geta, "geta( self :otto )=>int" }, { dao_otto_vtest, "vtest( self :otto )" }, { dao_otto_operator_43_, "operator[]( self :otto, i :int )=>int" }, { dao_otto_SETI_, "operator[]=( self :otto, i :int , _value :int )" }, { dao_otto_test, "test( self :otto, value :otto )=>otto" }, { NULL, NULL } }; static void Dao_otto_Delete( void *self ) { delete (otto*) self; } static DaoTypeBase otto_Typer = { "otto", NULL, dao_otto_Nums, dao_otto_Meths, { NULL }, { NULL }, Dao_otto_Delete, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_otto_Typer = & otto_Typer; /* ./greeting.h */ static void dao_otto_otto_dao_2( DaoProcess *_proc, DaoValue *_p[], int _n ) { int b = (int) DaoValue_TryGetInteger( _p[0] ); DaoCxx_otto *_self = DaoCxx_otto_New( b ); DaoProcess_PutValue( _proc, (DaoValue*) _self->cdata ); } /* ./greeting.h */ static void dao_otto_otto( DaoProcess *_proc, DaoValue *_p[], int _n ) { int b = (int) DaoValue_TryGetInteger( _p[0] ); DaoCxx_otto *_self = DaoCxx_otto_New( b ); DaoProcess_PutValue( _proc, (DaoValue*) _self->cdata ); } /* ./greeting.h */ static void dao_otto_geta( DaoProcess *_proc, DaoValue *_p[], int _n ) { otto* self= (otto*) DaoValue_TryCastCdata( _p[0], dao_otto_Typer ); int _geta = self->otto::geta( ); DaoProcess_PutInteger( _proc, (int) _geta ); } /* ./greeting.h */ static void dao_otto_vtest( DaoProcess *_proc, DaoValue *_p[], int _n ) { otto* self= (otto*) DaoValue_TryCastCdata( _p[0], dao_otto_Typer ); self->otto::vtest( ); } /* ./greeting.h */ static void dao_otto_operator_43_( DaoProcess *_proc, DaoValue *_p[], int _n ) { otto* self= (otto*) DaoValue_TryCastCdata( _p[0], dao_otto_Typer ); int i = (int) DaoValue_TryGetInteger( _p[1] ); int& _operator_43_ = self->otto::operator[]( i ); DaoProcess_PutInteger( _proc, (int) _operator_43_ ); } static void dao_otto_SETI_( DaoProcess *_proc, DaoValue *_p[], int _n ) { otto* self= (otto*) DaoValue_TryCastCdata( _p[0], dao_otto_Typer ); int i = (int) DaoValue_TryGetInteger( _p[1] ); int _value = (int) DaoValue_TryGetInteger( _p[2] ); self->otto::operator[]( i ) = _value; } /* ./greeting.h */ static void dao_otto_test( DaoProcess *_proc, DaoValue *_p[], int _n ) { DaoCxx_otto* self= (DaoCxx_otto*) DaoValue_TryCastCdata( _p[0], dao_otto_Typer ); otto* value= (otto*) DaoValue_TryCastCdata( _p[1], dao_otto_Typer ); otto _test = self->DaoWrap_test( *value ); DaoProcess_PutCdata( _proc, (void*)new otto( _test ), dao_otto_Typer ); } /* ./greeting.h */ static DaoNumItem dao_otto2_Nums[] = { { NULL, 0, 0 } }; static void dao_otto2_otto2( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_otto2_vtest( DaoProcess *_proc, DaoValue *_p[], int _n ); static DaoFuncItem dao_otto2_Meths[] = { { dao_otto2_otto2, "otto2( )=>otto2" }, { dao_otto2_vtest, "vtest( self :otto2 )" }, { NULL, NULL } }; static void Dao_otto2_Delete( void *self ) { delete (otto2*) self; } void* dao_cast_otto2_to_otto( void *data ) { return (otto*)(otto2*)data; } static DaoTypeBase otto2_Typer = { "otto2", NULL, dao_otto2_Nums, dao_otto2_Meths, { dao_otto_Typer, NULL }, { dao_cast_otto2_to_otto,NULL }, Dao_otto2_Delete, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_otto2_Typer = & otto2_Typer; static void dao_otto2_otto2( DaoProcess *_proc, DaoValue *_p[], int _n ) { DaoCxx_otto2 *self = DaoCxx_otto2_New(); DaoProcess_PutValue( _proc, (DaoValue*) self->cdata ); } /* ./greeting.h */ static void dao_otto2_vtest( DaoProcess *_proc, DaoValue *_p[], int _n ) { otto2* self= (otto2*) DaoValue_TryCastCdata( _p[0], dao_otto2_Typer ); self->otto2::vtest( ); } /* ./greeting.h */ static DaoNumItem dao_Greeting_Nums[] = { { NULL, 0, 0 } }; static void dao_Greeting_Greeting_dao_2( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_Greeting_Greeting( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_Greeting_SetMessage( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_Greeting_PrintMessage( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_Greeting_DoGreeting( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_Greeting_TestGreeting( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_Greeting_VirtWithDefault( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_Greeting_TestNull( DaoProcess *_proc, DaoValue *_p[], int _n ); static DaoFuncItem dao_Greeting_Meths[] = { { dao_Greeting_Greeting_dao_2, "Greeting( msg :string ='' )=>Greeting" }, { dao_Greeting_Greeting, "Greeting( msg :string ='' )=>Greeting" }, { dao_Greeting_SetMessage, "SetMessage( self :Greeting, msg :string )" }, { dao_Greeting_PrintMessage, "PrintMessage( self :Greeting )" }, { dao_Greeting_DoGreeting, "DoGreeting( self :Greeting, name :string )" }, { dao_Greeting_TestGreeting, "TestGreeting( self :Greeting, g :Greeting, name :string )" }, { dao_Greeting_VirtWithDefault, "VirtWithDefault( self :Greeting, g :Greeting|null =null )" }, { dao_Greeting_TestNull, "TestNull( self :Greeting, _p1 :Greeting::Null )=>Greeting::Null" }, { NULL, NULL } }; static void Dao_Greeting_Delete( void *self ) { delete (Greeting*) self; } static DaoTypeBase Greeting_Typer = { "Greeting", NULL, dao_Greeting_Nums, dao_Greeting_Meths, { NULL }, { NULL }, Dao_Greeting_Delete, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_Greeting_Typer = & Greeting_Typer; /* ./greeting.h */ static void dao_Greeting_Greeting_dao_2( DaoProcess *_proc, DaoValue *_p[], int _n ) { const char* msg = (const char*) DaoValue_TryGetMBString( _p[0] ); DaoCxx_Greeting *_self = DaoCxx_Greeting_New( msg ); DaoProcess_PutValue( _proc, (DaoValue*) _self->cdata ); DaoString_SetMBS( (DaoString*)_p[0], (char*)msg ); } /* ./greeting.h */ static void dao_Greeting_Greeting( DaoProcess *_proc, DaoValue *_p[], int _n ) { const char* msg = (const char*) DaoValue_TryGetMBString( _p[0] ); DaoCxx_Greeting *_self = DaoCxx_Greeting_New( msg ); DaoProcess_PutValue( _proc, (DaoValue*) _self->cdata ); DaoString_SetMBS( (DaoString*)_p[0], (char*)msg ); } /* ./greeting.h */ static void dao_Greeting_SetMessage( DaoProcess *_proc, DaoValue *_p[], int _n ) { Greeting* self= (Greeting*) DaoValue_TryCastCdata( _p[0], dao_Greeting_Typer ); const char* msg = (const char*) DaoValue_TryGetMBString( _p[1] ); self->Greeting::SetMessage( msg ); DaoString_SetMBS( (DaoString*)_p[1], (char*)msg ); } /* ./greeting.h */ static void dao_Greeting_PrintMessage( DaoProcess *_proc, DaoValue *_p[], int _n ) { Greeting* self= (Greeting*) DaoValue_TryCastCdata( _p[0], dao_Greeting_Typer ); self->Greeting::PrintMessage( ); } /* ./greeting.h */ static void dao_Greeting_DoGreeting( DaoProcess *_proc, DaoValue *_p[], int _n ) { Greeting* self= (Greeting*) DaoValue_TryCastCdata( _p[0], dao_Greeting_Typer ); const char* name = (const char*) DaoValue_TryGetMBString( _p[1] ); self->Greeting::DoGreeting( name ); DaoString_SetMBS( (DaoString*)_p[1], (char*)name ); } /* ./greeting.h */ static void dao_Greeting_TestGreeting( DaoProcess *_proc, DaoValue *_p[], int _n ) { Greeting* self= (Greeting*) DaoValue_TryCastCdata( _p[0], dao_Greeting_Typer ); Greeting* g= (Greeting*) DaoValue_TryCastCdata( _p[1], dao_Greeting_Typer ); const char* name = (const char*) DaoValue_TryGetMBString( _p[2] ); self->Greeting::TestGreeting( g, name ); DaoString_SetMBS( (DaoString*)_p[2], (char*)name ); } /* ./greeting.h */ static void dao_Greeting_VirtWithDefault( DaoProcess *_proc, DaoValue *_p[], int _n ) { Greeting* self= (Greeting*) DaoValue_TryCastCdata( _p[0], dao_Greeting_Typer ); Greeting* g= (Greeting*) DaoValue_TryCastCdata( _p[1], dao_Greeting_Typer ); if(_n<=1) self->Greeting::VirtWithDefault( ); else self->Greeting::VirtWithDefault( *g ); } /* ./greeting.h */ static void dao_Greeting_TestNull( DaoProcess *_proc, DaoValue *_p[], int _n ) { Greeting* self= (Greeting*) DaoValue_TryCastCdata( _p[0], dao_Greeting_Typer ); Greeting::Null* _p1= (Greeting::Null*) DaoValue_TryCastCdata( _p[1], dao_Greeting_0_Null_Typer ); Greeting::Null _TestNull = self->Greeting::TestNull( *_p1 ); DaoProcess_PutCdata( _proc, (void*)new Greeting::Null( _TestNull ), dao_Greeting_0_Null_Typer ); } /* ./greeting.h */ static DaoNumItem dao_Greeting_0_Null_Nums[] = { { NULL, 0, 0 } }; static void dao_Greeting_0_Null_Null( DaoProcess *_proc, DaoValue *_p[], int _n ); static DaoFuncItem dao_Greeting_0_Null_Meths[] = { { dao_Greeting_0_Null_Null, "Null( )=>Null" }, { NULL, NULL } }; static void Dao_Greeting_0_Null_Delete( void *self ) { delete (Greeting::Null*) self; } static DaoTypeBase Greeting_0_Null_Typer = { "Greeting::Null", NULL, dao_Greeting_0_Null_Nums, dao_Greeting_0_Null_Meths, { NULL }, { NULL }, Dao_Greeting_0_Null_Delete, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_Greeting_0_Null_Typer = & Greeting_0_Null_Typer; static void dao_Greeting_0_Null_Null( DaoProcess *_proc, DaoValue *_p[], int _n ) { Greeting::Null *self = Dao_Greeting_0_Null_New(); DaoProcess_PutCdata( _proc, self, dao_Greeting_0_Null_Typer ); } /* ./greeting.h */ static DaoNumItem dao_Greeting2_Nums[] = { { NULL, 0, 0 } }; static void dao_Greeting2_Greeting2( DaoProcess *_proc, DaoValue *_p[], int _n ); static DaoFuncItem dao_Greeting2_Meths[] = { { dao_Greeting2_Greeting2, "Greeting2( )=>Greeting2" }, { NULL, NULL } }; static void Dao_Greeting2_Delete( void *self ) { delete (Greeting2*) self; } void* dao_cast_Greeting2_to_Greeting( void *data ) { return (Greeting*)(Greeting2*)data; } static DaoTypeBase Greeting2_Typer = { "Greeting2", NULL, dao_Greeting2_Nums, dao_Greeting2_Meths, { dao_Greeting_Typer, NULL }, { dao_cast_Greeting2_to_Greeting,NULL }, Dao_Greeting2_Delete, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_Greeting2_Typer = & Greeting2_Typer; static void dao_Greeting2_Greeting2( DaoProcess *_proc, DaoValue *_p[], int _n ) { DaoCxx_Greeting2 *self = DaoCxx_Greeting2_New(); DaoProcess_PutValue( _proc, (DaoValue*) self->cdata ); } /* ./greeting.h */ static DaoNumItem dao_AutobindTest_Nums[] = { { NULL, 0, 0 } }; static void dao_AutobindTest_AutobindTest( DaoProcess *_proc, DaoValue *_p[], int _n ); static DaoFuncItem dao_AutobindTest_Meths[] = { { dao_AutobindTest_AutobindTest, "AutobindTest( )=>AutobindTest" }, { NULL, NULL } }; static void Dao_AutobindTest_Delete( void *self ) { delete (AutobindTest*) self; } static DaoTypeBase AutobindTest_Typer = { "AutobindTest", NULL, dao_AutobindTest_Nums, dao_AutobindTest_Meths, { NULL }, { NULL }, Dao_AutobindTest_Delete, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_AutobindTest_Typer = & AutobindTest_Typer; static void dao_AutobindTest_AutobindTest( DaoProcess *_proc, DaoValue *_p[], int _n ) { AutobindTest *self = Dao_AutobindTest_New(); DaoProcess_PutCdata( _proc, self, dao_AutobindTest_Typer ); } /* ./greeting.h */ static DaoNumItem dao_CxxNS_0_Test_Nums[] = { { NULL, 0, 0 } }; static void dao_CxxNS_0_Test_Test( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_CxxNS_0_Test_GETF_index( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_CxxNS_0_Test_SETF_index( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_CxxNS_0_Test_GETF_value( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_CxxNS_0_Test_SETF_value( DaoProcess *_proc, DaoValue *_p[], int _n ); static void dao_CxxNS_0_Test_Print( DaoProcess *_proc, DaoValue *_p[], int _n ); static DaoFuncItem dao_CxxNS_0_Test_Meths[] = { { dao_CxxNS_0_Test_Test, "Test( )=>Test" }, { dao_CxxNS_0_Test_GETF_index, ".index( self :Test )=>int" }, { dao_CxxNS_0_Test_SETF_index, ".index=( self :Test, index :int )" }, { dao_CxxNS_0_Test_GETF_value, ".value( self :Test )=>double" }, { dao_CxxNS_0_Test_SETF_value, ".value=( self :Test, value :double )" }, { dao_CxxNS_0_Test_Print, "Print( self :CxxNS::Test )" }, { NULL, NULL } }; static void Dao_CxxNS_0_Test_Delete( void *self ) { delete (CxxNS::Test*) self; } static DaoTypeBase CxxNS_0_Test_Typer = { "CxxNS::Test", NULL, dao_CxxNS_0_Test_Nums, dao_CxxNS_0_Test_Meths, { NULL }, { NULL }, Dao_CxxNS_0_Test_Delete, NULL }; DaoTypeBase DAO_DLL_GREETING *dao_CxxNS_0_Test_Typer = & CxxNS_0_Test_Typer; static void dao_CxxNS_0_Test_Test( DaoProcess *_proc, DaoValue *_p[], int _n ) { CxxNS::Test *self = Dao_CxxNS_0_Test_New(); DaoProcess_PutCdata( _proc, self, dao_CxxNS_0_Test_Typer ); } static void dao_CxxNS_0_Test_GETF_index( DaoProcess *_proc, DaoValue *_p[], int _n ) { CxxNS::Test *self = (CxxNS::Test*)DaoValue_TryCastCdata(_p[0],dao_CxxNS_0_Test_Typer); DaoProcess_PutInteger( _proc, (int) self->index ); } static void dao_CxxNS_0_Test_SETF_index( DaoProcess *_proc, DaoValue *_p[], int _n ) { CxxNS::Test *self = (CxxNS::Test*)DaoValue_TryCastCdata(_p[0],dao_CxxNS_0_Test_Typer); self->index = (int) DaoValue_TryGetInteger(_p[1]); } static void dao_CxxNS_0_Test_GETF_value( DaoProcess *_proc, DaoValue *_p[], int _n ) { CxxNS::Test *self = (CxxNS::Test*)DaoValue_TryCastCdata(_p[0],dao_CxxNS_0_Test_Typer); DaoProcess_PutDouble( _proc, (double) self->value ); } static void dao_CxxNS_0_Test_SETF_value( DaoProcess *_proc, DaoValue *_p[], int _n ) { CxxNS::Test *self = (CxxNS::Test*)DaoValue_TryCastCdata(_p[0],dao_CxxNS_0_Test_Typer); self->value = (double) DaoValue_TryGetDouble(_p[1]); } /* ./greeting.h */ static void dao_CxxNS_0_Test_Print( DaoProcess *_proc, DaoValue *_p[], int _n ) { CxxNS::Test* self= (CxxNS::Test*) DaoValue_TryCastCdata( _p[0], dao_CxxNS_0_Test_Typer ); self->Test::Print( ); } #ifdef __cplusplus } #endif