History

prep for type dump functionality

Ge Wang committed 5 years ago

Commit 5f0f95d1 parent 438fb826 files · +77 −39Browse files

Showing the changes to src/core/chuck_lang.cpp (1 of 6 files). Show all

Unified · Split

src/core/chuck_lang.cpp+11−10
@@ -79,17 +79,17 @@ t_CKBOOL init_class_object( Chuck_Env * env, Chuck_Type * type ) · 78 unmodified lines
79 func = make_new_mfun( "string", "toString", object_toString );79 func = make_new_mfun( "string", "toString", object_toString );
80 func->doc = "get a textual description of this object.";80 func->doc = "get a textual description of this object.";
81 if( !type_engine_import_mfun( env, func ) ) goto error;81 if( !type_engine_import_mfun( env, func ) ) goto error;
82 82
83 // add dump()83 // add help()
84 // func = make_new_mfun( "void", "dump", object_dump );84 func = make_new_sfun( "void", "help", object_help );
85 // func->doc = "output current state of the object as text.";
86 // if( !type_engine_import_mfun( env, func ) ) goto error;
87
88 // add api()
89 func = make_new_sfun( "void", "help", object_apropos );
90 func->doc = "generate and output helpful information about a class or object.";85 func->doc = "generate and output helpful information about a class or object.";
91 if( !type_engine_import_sfun( env, func ) ) goto error;86 if( !type_engine_import_sfun( env, func ) ) goto error;
92 87
88// // add dump()
89// func = make_new_mfun( "void", "dump", object_dump );
90// func->doc = "output current state of the object.";
91// if( !type_engine_import_mfun( env, func ) ) goto error;
92
93 // end the class import93 // end the class import
94 type_engine_import_class_end( env );94 type_engine_import_class_end( env );
95 95
@@ -1071,8 +1071,8 @@ CK_DLL_MFUN( object_dump ) · 975 unmodified lines
1071 me->dump();1071 me->dump();
1072}1072}
1073 1073
1074// apropos1074// help
1075CK_DLL_SFUN( object_apropos )1075CK_DLL_SFUN( object_help )
1076{1076{
1077 TYPE->apropos();1077 TYPE->apropos();
1078 // get object1078 // get object
@@ -1083,6 +1083,7 @@ CK_DLL_SFUN( object_apropos ) · 4 unmodified lines
1083 1083
1084 1084
1085 1085
1086
1086// ctor1087// ctor
1087CK_DLL_CTOR( ugen_ctor )1088CK_DLL_CTOR( ugen_ctor )
1088{1089{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t