History

apopros functions and apis

gewang committed 5 years ago

Commit 449ef401 parent 9967a047 files · +312 −76Browse files

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

Unified · Split

src/core/chuck_lang.cpp+6−6
@@ -399,11 +399,11 @@ t_CKBOOL init_class_event( Chuck_Env * env, Chuck_Type * type ) · 398 unmodified lines
399399 func->doc = "signal all shreds that are waiting on this event.";
400400 if( !type_engine_import_mfun( env, func ) ) goto error;
401401
402− // add wait()
403− func = make_new_mfun( "void", "wait", event_wait );
404− func->add_arg( "Shred", "me" );
405− func->doc = "(currently unsupported)";
406− if( !type_engine_import_mfun( env, func ) ) goto error;
402+ // add wait() | commented out 1.4.0.2 (ge) -- it doesn't DO anything!!!
403+ // func = make_new_mfun( "void", "wait", event_wait );
404+ // func->add_arg( "Shred", "me" );
405+ // func->doc = "(currently unsupported; use Event => now to wait on event)";
406+ // if( !type_engine_import_mfun( env, func ) ) goto error;
407407
408408 // add can_wait()
409409 func = make_new_mfun( "int", "can_wait", event_can_wait );
@@ -954,7 +954,7 @@ t_CKBOOL init_class_array( Chuck_Env * env, Chuck_Type * type ) · 544 unmodified lines
954954 // ---------
955955 // add cap()
956956 func = make_new_mfun( "int", "cap", array_get_capacity_hack );
957− func->doc = "for historical/compatibilty reasons, this is the same as .size(); it is recommended to explicitly use .size() or .capacity().";
957+ func->doc = "(deprecated) For historical/compatibilty reasons, .cap() is always equal to .size(); instead of using .cap(), it is recommended to explicitly use .size() or .capacity().";
958958 if( !type_engine_import_mfun( env, func ) ) goto error;
959959
960960 // add capacity() // 1.4.0.2

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