+added an "HTML" return value to the os() function.

This commit is contained in:
Wang Renxin 2021-03-02 14:06:08 +08:00
parent 08b30667e1
commit 5de031245d
2 changed files with 4 additions and 2 deletions

View File

@ -18786,7 +18786,7 @@ _exit:
} }
/* EXISTS statement */ /* EXISTS statement */
static int _coll_exists(mb_interpreter_t* s, void** l){ static int _coll_exists(mb_interpreter_t* s, void** l) {
int result = MB_FUNC_OK; int result = MB_FUNC_OK;
mb_value_t coll; mb_value_t coll;
mb_value_t arg; mb_value_t arg;

View File

@ -1218,7 +1218,9 @@ static bool_t _process_parameters(int argc, char* argv[]) {
** Scripting interfaces ** Scripting interfaces
*/ */
#ifdef MB_OS_WIN #if defined MB_OS_HTML
# define _OS "HTML"
#elif defined MB_OS_WIN
# define _OS "WINDOWS" # define _OS "WINDOWS"
#elif defined MB_OS_IOS || MB_OS_IOS_SIM #elif defined MB_OS_IOS || MB_OS_IOS_SIM
# define _OS "IOS" # define _OS "IOS"