load_std_lib moved to anothep place in file
This commit is contained in:
9
ml.cpp
9
ml.cpp
@@ -2196,9 +2196,6 @@ MlValue usql(std::vector<MlValue> args, MlEnvironment &env) {
|
|||||||
|
|
||||||
} // namespace builtin
|
} // namespace builtin
|
||||||
|
|
||||||
void load_std_lib(MlEnvironment &env) {
|
|
||||||
run(STDLIB_LOADER, env);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Does this environment, or its parent environment, have a variable?
|
// Does this environment, or its parent environment, have a variable?
|
||||||
bool MlEnvironment::has(const std::string &name) const {
|
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;
|
return tokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void load_std_lib(MlEnvironment &env) {
|
||||||
|
run(STDLIB_LOADER, env);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
MlEnvironment env;
|
MlEnvironment env;
|
||||||
std::vector<MlValue> args;
|
std::vector<MlValue> args;
|
||||||
|
|||||||
Reference in New Issue
Block a user