void SUB_EMITLOGGINGSTATEMENT(qbs*_SUB_EMITLOGGINGSTATEMENT_STRING_ELEMENTS,qbs*_SUB_EMITLOGGINGSTATEMENT_STRING_LOGLEVEL){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data257.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (is_error_pending()) goto exit_subfunc;
S_37737:;
if(qbevent){evnt(24229,3,"logging.bas");if(r)goto S_37737;}
S_37738:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_LOGLEVEL,qbs_new_txt_len("TRACE",5))))||is_error_pending()){
if(qbevent){evnt(24229,4,"logging.bas");if(r)goto S_37738;}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("sub__logtrace",13));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,4,"logging.bas");}while(r);
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_SCASELAYOUT,qbs_new_txt_len("_LogTrace",9));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,4,"logging.bas");}while(r);
sc_ec_220_end:;
goto sc_4382_end;
}
S_37741:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_LOGLEVEL,qbs_new_txt_len("INFO",4))))||is_error_pending()){
if(qbevent){evnt(24229,5,"logging.bas");if(r)goto S_37741;}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("sub__loginfo",12));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,5,"logging.bas");}while(r);
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_SCASELAYOUT,qbs_new_txt_len("_LogInfo",8));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,5,"logging.bas");}while(r);
sc_ec_221_end:;
goto sc_4382_end;
}
S_37744:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_LOGLEVEL,qbs_new_txt_len("WARN",4))))||is_error_pending()){
if(qbevent){evnt(24229,6,"logging.bas");if(r)goto S_37744;}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("sub__logwarn",12));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,6,"logging.bas");}while(r);
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_SCASELAYOUT,qbs_new_txt_len("_LogWarn",8));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,6,"logging.bas");}while(r);
sc_ec_222_end:;
goto sc_4382_end;
}
S_37747:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_LOGLEVEL,qbs_new_txt_len("ERROR",5))))||is_error_pending()){
if(qbevent){evnt(24229,7,"logging.bas");if(r)goto S_37747;}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("sub__logerror",13));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,7,"logging.bas");}while(r);
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_SCASELAYOUT,qbs_new_txt_len("_LogError",9));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,7,"logging.bas");}while(r);
sc_ec_223_end:;
goto sc_4382_end;
}
sc_4382_end:;
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_E,FUNC_FIXOPERATIONORDER(_SUB_EMITLOGGINGSTATEMENT_STRING_ELEMENTS));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,10,"logging.bas");}while(r);
S_37752:;
if ((*__LONG_ERROR_HAPPENED)||is_error_pending()){
if(qbevent){evnt(24229,11,"logging.bas");if(r)goto S_37752;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24229,11,"logging.bas");}while(r);
}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_L,qbs_add(qbs_add(FUNC_SCASE(_SUB_EMITLOGGINGSTATEMENT_STRING_SCASELAYOUT),__STRING1_SP),__STRING_TLAYOUT));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,13,"logging.bas");}while(r);
do{
*__LONG_LAYOUTDONE= 1 ;
if(!qbevent)break;evnt(24229,14,"logging.bas");}while(r);
do{
SUB_PUSHELEMENT(__STRING_LAYOUT,_SUB_EMITLOGGINGSTATEMENT_STRING_L);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,14,"logging.bas");}while(r);
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_E,FUNC_EVALUATETOTYP(_SUB_EMITLOGGINGSTATEMENT_STRING_E,__LONG_ISSTRING));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,16,"logging.bas");}while(r);
S_37759:;
if ((*__LONG_ERROR_HAPPENED)||is_error_pending()){
if(qbevent){evnt(24229,17,"logging.bas");if(r)goto S_37759;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24229,17,"logging.bas");}while(r);
}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_SUBFUNCNAME,__STRING_SUBFUNC);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,19,"logging.bas");}while(r);
S_37763:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_SUBFUNCNAME,qbs_new_txt_len("",0))))||is_error_pending()){
if(qbevent){evnt(24229,21,"logging.bas");if(r)goto S_37763;}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_SUBFUNCNAME,qbs_new_txt_len("Main QB64 Code",14));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,21,"logging.bas");}while(r);
}
S_37766:;
if ((-(*__LONG_INCLEVEL== 0 ))||is_error_pending()){
if(qbevent){evnt(24229,23,"logging.bas");if(r)goto S_37766;}
S_37767:;
if ((*__BYTE_NOIDEMODE)||is_error_pending()){
if(qbevent){evnt(24229,24,"logging.bas");if(r)goto S_37767;}
do{
SUB_WRITEBUFLINE(&(pass4383=*__LONG_MAINTXTBUF),qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("(",1)),FUNC_ADDQUOTES(FUNC_ESCAPESTRING(__STRING_SOURCEFILE))),qbs_new_txt_len(", ",2)),FUNC_ADDQUOTES(FUNC_ESCAPESTRING(_SUB_EMITLOGGINGSTATEMENT_STRING_SUBFUNCNAME))),qbs_new_txt_len(", ",2)),qbs__tostr((int32)(*__LONG_LINENUMBER),NULL,0)),qbs_new_txt_len(", ",2)),_SUB_EMITLOGGINGSTATEMENT_STRING_E),qbs_new_txt_len(");",2)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,25,"logging.bas");}while(r);
}else{
do{
SUB_WRITEBUFLINE(&(pass4384=*__LONG_MAINTXTBUF),qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("(",1)),FUNC_ADDQUOTES(FUNC_ESCAPESTRING(__STRING_IDEPROGNAME))),qbs_new_txt_len(", ",2)),FUNC_ADDQUOTES(FUNC_ESCAPESTRING(_SUB_EMITLOGGINGSTATEMENT_STRING_SUBFUNCNAME))),qbs_new_txt_len(", ",2)),qbs__tostr((int32)(*__LONG_LINENUMBER),NULL,0)),qbs_new_txt_len(", ",2)),_SUB_EMITLOGGINGSTATEMENT_STRING_E),qbs_new_txt_len(");",2)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,27,"logging.bas");}while(r);
}
}else{
do{
SUB_WRITEBUFLINE(&(pass4385=*__LONG_MAINTXTBUF),qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("(",1)),FUNC_ADDQUOTES(FUNC_ESCAPESTRING(((qbs*)(((uint64*)(__ARRAY_STRING_INCNAME[0]))[array_check((*__LONG_INCLEVEL)-__ARRAY_STRING_INCNAME[4],__ARRAY_STRING_INCNAME[5])]))))),qbs_new_txt_len(", ",2)),FUNC_ADDQUOTES(FUNC_ESCAPESTRING(_SUB_EMITLOGGINGSTATEMENT_STRING_SUBFUNCNAME))),qbs_new_txt_len(", ",2)),qbs__tostr((int32)(((int32*)(__ARRAY_LONG_INCLINENUMBER[0]))[array_check((*__LONG_INCLEVEL)-__ARRAY_LONG_INCLINENUMBER[4],__ARRAY_LONG_INCLINENUMBER[5])]),NULL,0)),qbs_new_txt_len(", ",2)),_SUB_EMITLOGGINGSTATEMENT_STRING_E),qbs_new_txt_len(");",2)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24229,30,"logging.bas");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free257.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
}
