History

updated Machine.eval() description

Ge Wang committed 3 years ago

Commit 687594d1 parent 5d4d2081 file · +3 −3Browse files

Showing the changes to src/core (1 of 1 file). Show all

Unified · Split

src/core/ulib_machine.cpp+3−3
@@ -145,20 +145,20 @@ DLL_QUERY machine_query( Chuck_DL_Query * QUERY ) · 144 unmodified lines
145 // add eval145 // add eval
146 //! evaluate a string as ChucK code, compiling it and adding it to the the virtual machine146 //! evaluate a string as ChucK code, compiling it and adding it to the the virtual machine
147 QUERY->add_sfun( QUERY, machine_eval_impl, "int", "eval" );147 QUERY->add_sfun( QUERY, machine_eval_impl, "int", "eval" );
148 QUERY->doc_func( QUERY, "evaluate a string as ChucK code, compiling it and spork it as a child shred of the current shred." );148 QUERY->doc_func( QUERY, "evaluate a string as ChucK code, compile it and spork it as an independent shred." );
149 QUERY->add_arg( QUERY, "string", "code" );149 QUERY->add_arg( QUERY, "string", "code" );
150 150
151 // add eval151 // add eval
152 //! evaluate a string as ChucK code, compiling it and adding it to the the virtual machine152 //! evaluate a string as ChucK code, compiling it and adding it to the the virtual machine
153 QUERY->add_sfun( QUERY, machine_eval2_impl, "int", "eval" );153 QUERY->add_sfun( QUERY, machine_eval2_impl, "int", "eval" );
154 QUERY->doc_func( QUERY, "evaluate a string as ChucK code, with optional arguments (bundled in 'args' as \"ARG1:ARG2:...\", compiling it and spork it as a child shred of the current shred." );154 QUERY->doc_func( QUERY, "evaluate a string as ChucK code, with optional arguments (bundled in 'args' as \"ARG1:ARG2:...\", compile it and spork it as an independent shred." );
155 QUERY->add_arg( QUERY, "string", "code" );155 QUERY->add_arg( QUERY, "string", "code" );
156 QUERY->add_arg( QUERY, "string", "args" );156 QUERY->add_arg( QUERY, "string", "args" );
157 157
158 // add eval158 // add eval
159 //! evaluate a string as ChucK code, compiling it and adding it to the the virtual machine159 //! evaluate a string as ChucK code, compiling it and adding it to the the virtual machine
160 QUERY->add_sfun( QUERY, machine_eval3_impl, "int", "eval" );160 QUERY->add_sfun( QUERY, machine_eval3_impl, "int", "eval" );
161 QUERY->doc_func( QUERY, "evaluate a string as ChucK code, with optional arguments (bundled in 'args' as \"ARG1:ARG2:...\", compiling it and sporking 'count' instances as a child shreds of the current shred." );161 QUERY->doc_func( QUERY, "evaluate a string as ChucK code, with optional arguments (bundled in 'args' as \"ARG1:ARG2:...\", compile it and sporking 'count' instances, each as an independent shred." );
162 QUERY->add_arg( QUERY, "string", "code" );162 QUERY->add_arg( QUERY, "string", "code" );
163 QUERY->add_arg( QUERY, "string", "args" );163 QUERY->add_arg( QUERY, "string", "args" );
164 QUERY->add_arg( QUERY, "int", "count" );164 QUERY->add_arg( QUERY, "int", "count" );

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