load_std_lib moved to anothep place in file

This commit is contained in:
vaclavt 2022-06-16 17:08:58 +02:00
parent e6cf7aa636
commit a87ceb2f19
1 changed files with 6 additions and 3 deletions

9
ml.cpp
View File

@ -2196,9 +2196,6 @@ MlValue usql(std::vector<MlValue> args, MlEnvironment &env) {
} // namespace builtin
void load_std_lib(MlEnvironment &env) {
run(STDLIB_LOADER, env);
}
// Does this environment, or its parent environment, have a variable?
bool MlEnvironment::has(const std::string &name) const {
@ -2440,6 +2437,12 @@ std::vector<std::string> getCmdOption(char *argv[], int argc, const std::string
return tokens;
}
void load_std_lib(MlEnvironment &env) {
run(STDLIB_LOADER, env);
}
int main(int argc, char *argv[]) {
MlEnvironment env;
std::vector<MlValue> args;