| 119 | static Case *CurrentCase() { return SamApp::Window()->GetCurrentCase(); } |
| 120 | |
| 121 | static void fcall_active_case( lk::invoke_t &cxt ) |
| 122 | { |
| 123 | LK_DOC( "active_case", "Sets the currently active case, or returns its name.", "([string:case name]):variant" ); |
| 124 | if (cxt.arg_count() == 0 ) |
| 125 | cxt.result().assign( SamApp::Window()->Project().GetCaseName( CurrentCase() ) ); |
| 126 | else |
| 127 | cxt.result().assign( SamApp::Window()->SwitchToCaseWindow( cxt.arg(0).as_string() ) ? 1.0 : 0.0 ); |
| 128 | } |
| 129 | |
| 130 | static void fcall_varinfo( lk::invoke_t &cxt ) |
| 131 | { |
nothing calls this directly
no test coverage detected