Showing the changes to src/core/chuck_lang.cpp (1 of 6 files). Show all
Unified · Split
| @@ -79,17 +79,17 @@ t_CKBOOL init_class_object( Chuck_Env * env, Chuck_Type * type ) · 78 unmodified lines | ||
| 79 | 79 | func = make_new_mfun( "string", "toString", object_toString ); |
| 80 | 80 | func->doc = "get a textual description of this object."; |
| 81 | 81 | 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 ); | |
| 90 | 85 | func->doc = "generate and output helpful information about a class or object."; |
| 91 | 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 | 93 | // end the class import |
| 94 | 94 | type_engine_import_class_end( env ); |
| 95 | 95 | |
| @@ -1071,8 +1071,8 @@ CK_DLL_MFUN( object_dump ) · 975 unmodified lines | ||
| 1071 | 1071 | me->dump(); |
| 1072 | 1072 | } |
| 1073 | 1073 | |
| 1074 | −// apropos | |
| 1075 | −CK_DLL_SFUN( object_apropos ) | |
| 1074 | +// help | |
| 1075 | +CK_DLL_SFUN( object_help ) | |
| 1076 | 1076 | { |
| 1077 | 1077 | TYPE->apropos(); |
| 1078 | 1078 | // get object |
| @@ -1083,6 +1083,7 @@ CK_DLL_SFUN( object_apropos ) · 4 unmodified lines | ||
| 1083 | 1083 | |
| 1084 | 1084 | |
| 1085 | 1085 | |
| 1086 | + | |
| 1086 | 1087 | // ctor |
| 1087 | 1088 | CK_DLL_CTOR( ugen_ctor ) |
| 1088 | 1089 | { |