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 "data268.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_39390:;
if(qbevent){evnt(25763,3,"logging.bas");if(r)goto S_39390;}
S_39391:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_LOGLEVEL,qbs_new_txt_len("TRACE",5))))||is_error_pending()){
if(qbevent){evnt(25763,4,"logging.bas");if(r)goto S_39391;}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("sub__logtrace",13));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25763,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(25763,4,"logging.bas");}while(r);
sc_ec_220_end:;
goto sc_4653_end;
}
S_39394:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_LOGLEVEL,qbs_new_txt_len("INFO",4))))||is_error_pending()){
if(qbevent){evnt(25763,5,"logging.bas");if(r)goto S_39394;}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("sub__loginfo",12));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25763,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(25763,5,"logging.bas");}while(r);
sc_ec_221_end:;
goto sc_4653_end;
}
S_39397:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_LOGLEVEL,qbs_new_txt_len("WARN",4))))||is_error_pending()){
if(qbevent){evnt(25763,6,"logging.bas");if(r)goto S_39397;}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("sub__logwarn",12));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25763,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(25763,6,"logging.bas");}while(r);
sc_ec_222_end:;
goto sc_4653_end;
}
S_39400:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_LOGLEVEL,qbs_new_txt_len("ERROR",5))))||is_error_pending()){
if(qbevent){evnt(25763,7,"logging.bas");if(r)goto S_39400;}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_FUNC,qbs_new_txt_len("sub__logerror",13));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25763,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(25763,7,"logging.bas");}while(r);
sc_ec_223_end:;
goto sc_4653_end;
}
sc_4653_end:;
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_E,FUNC_FIXOPERATIONORDER(_SUB_EMITLOGGINGSTATEMENT_STRING_ELEMENTS));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25763,10,"logging.bas");}while(r);
S_39405:;
if ((*__LONG_ERROR_HAPPENED)||is_error_pending()){
if(qbevent){evnt(25763,11,"logging.bas");if(r)goto S_39405;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25763,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(25763,13,"logging.bas");}while(r);
do{
*__LONG_LAYOUTDONE= 1 ;
if(!qbevent)break;evnt(25763,14,"logging.bas");}while(r);
do{
SUB_PUSHELEMENT(__STRING_LAYOUT,_SUB_EMITLOGGINGSTATEMENT_STRING_L);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25763,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(25763,16,"logging.bas");}while(r);
S_39412:;
if ((*__LONG_ERROR_HAPPENED)||is_error_pending()){
if(qbevent){evnt(25763,17,"logging.bas");if(r)goto S_39412;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25763,17,"logging.bas");}while(r);
}
do{
qbs_set(_SUB_EMITLOGGINGSTATEMENT_STRING_SUBFUNCNAME,__STRING_SUBFUNC);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25763,19,"logging.bas");}while(r);
S_39416:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_EMITLOGGINGSTATEMENT_STRING_SUBFUNCNAME,qbs_new_txt_len("",0))))||is_error_pending()){
if(qbevent){evnt(25763,21,"logging.bas");if(r)goto S_39416;}
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(25763,21,"logging.bas");}while(r);
}
S_39419:;
if ((-(*__LONG_INCLEVEL== 0 ))||is_error_pending()){
if(qbevent){evnt(25763,23,"logging.bas");if(r)goto S_39419;}
S_39420:;
if ((*__BYTE_NOIDEMODE)||is_error_pending()){
if(qbevent){evnt(25763,24,"logging.bas");if(r)goto S_39420;}
do{
SUB_WRITEBUFLINE(&(pass4654=*__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(25763,25,"logging.bas");}while(r);
}else{
do{
SUB_WRITEBUFLINE(&(pass4655=*__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(25763,27,"logging.bas");}while(r);
}
}else{
do{
SUB_WRITEBUFLINE(&(pass4656=*__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(25763,30,"logging.bas");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free268.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;
}
