mirror of
https://gitlab.com/eql/EQL5.git
synced 2026-03-14 10:41:12 -07:00
add function 'qlog' for android logging (EQL5-Android only)
This commit is contained in:
parent
021b44a56e
commit
7b8aba492d
5 changed files with 35 additions and 0 deletions
|
|
@ -136,6 +136,7 @@ void iniCLFunctions() {
|
|||
DEFUN ("%qload-c++", qload_cpp, 2)
|
||||
DEFUN ("qload-ui", qload_ui, 1)
|
||||
DEFUN ("qlocal8bit", qlocal8bit, 1)
|
||||
DEFUN ("qlog", qlog, 1)
|
||||
DEFUN ("%qnew-instance", qnew_instance2, 2)
|
||||
DEFUN ("%qobject-names", qobject_names2, 1)
|
||||
DEFUN ("qok", qok, 0)
|
||||
|
|
@ -2978,6 +2979,12 @@ cl_object qrun_in_gui_thread2(cl_object l_function_or_closure, cl_object l_block
|
|||
error_msg("QRUN-IN-GUI-THREAD", LIST1(l_function_or_closure));
|
||||
return Cnil; }
|
||||
|
||||
cl_object qlog(cl_object l_msg) {
|
||||
// for android logging only; see 'eql.cpp::logMessageHandler()'
|
||||
ecl_process_env()->nvalues = 1;
|
||||
qDebug() << toQString(l_msg);
|
||||
return Cnil; }
|
||||
|
||||
|
||||
|
||||
// *** special extensions ***
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue