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
7979 func = make_new_mfun( "string", "toString", object_toString );
8080 func->doc = "get a textual description of this object.";
8181 if( !type_engine_import_mfun( env, func ) ) goto error;
82−
83− // add dump()
84− // func = make_new_mfun( "void", "dump", object_dump );
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 );
82+
83+ // add help()
84+ func = make_new_sfun( "void", "help", object_help );
9085 func->doc = "generate and output helpful information about a class or object.";
9186 if( !type_engine_import_sfun( env, func ) ) goto error;
9287
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+
9393 // end the class import
9494 type_engine_import_class_end( env );
9595
@@ -1071,8 +1071,8 @@ CK_DLL_MFUN( object_dump ) · 975 unmodified lines
10711071 me->dump();
10721072 }
10731073
1074−// apropos
1075−CK_DLL_SFUN( object_apropos )
1074+// help
1075+CK_DLL_SFUN( object_help )
10761076 {
10771077 TYPE->apropos();
10781078 // get object
@@ -1083,6 +1083,7 @@ CK_DLL_SFUN( object_apropos ) · 4 unmodified lines
10831083
10841084
10851085
1086+
10861087 // ctor
10871088 CK_DLL_CTOR( ugen_ctor )
10881089 {

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