You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9319266
Browse filesBrowse the repository at this point in the historyBrowse files
mScroll = mScroll + 1 >= size ? 0 : mScroll; // Counted from the end: same lines, the end if the lowest shown one was removed
158
160
}
159
161
160
162
// Tokens separated by spaces: text in single / double quotes and characters after a backslash are plain text (the token is a string),
161
-
// otherwise a token is int64_t for [+-]digits, double for [+-]digits with one '.', a string otherwise. Throws std::runtime_error for an unterminated quote / trailing backslash.
163
+
// otherwise a token is int64_t for [+-]digits, double for other decimal numbers (also with exponent), a string otherwise. Throws std::runtime_error for an unterminated quote / trailing backslash.
auto autoType = [](const std::string& text, bool plain) -> consoleArg { // int64_t for [+-]digits, double for other decimal numbers (also with exponent, as saveSettings writes them), string otherwise or if plain text
voidwaitFor(std::function<bool()> condition) { mWaitCondition = std::move(condition); } // The following script lines run once the condition is true
53
53
voidstartBenchmark(uint32_t n); // Measures the next n frames, the following script lines run afterwards
54
-
voidprintCommands(const std::function<void(const std::string&)>& print); // List of the commands with argument types and description, one line per call
54
+
voidprintCommands(const std::function<void(const std::string&)>& print)const;// List of the commands with argument types and description, one line per call
55
55
std::tuple<const GPUDisplayConsoleCommand&, std::vector<consoleArg>> parseConsoleCommand(std::string_view cmd) const; // Command and its arguments with the types it requests, throws std::runtime_error for syntax errors, unknown commands, wrong arguments
56
56
voidconsolePrint(constchar* format, ...); // printf-like output to the console, indented by 2 spaces in mConsoleHistory
57
57
voidconsoleInfo(constchar* format, constchar* text); // Output of SetInfo, updates the last line instead for the same message within 2 s
0 commit comments