*polished input statement without parameter on windows.
This commit is contained in:
parent
021f552c67
commit
8178de92c4
@ -10663,7 +10663,11 @@ int _std_input(mb_interpreter_t* s, void** l) {
|
|||||||
obj = (_object_t*)(ast->data);
|
obj = (_object_t*)(ast->data);
|
||||||
|
|
||||||
if(!obj || obj->type == _DT_EOS) {
|
if(!obj || obj->type == _DT_EOS) {
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
getch();
|
||||||
|
#else /* _MSC_VER */
|
||||||
_get_inputer(s)(line, sizeof(line));
|
_get_inputer(s)(line, sizeof(line));
|
||||||
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
goto _exit;
|
goto _exit;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user