MapleUserInfo
print useful information to the user in external code
Calling Sequence
Parameters
Description
Examples
MapleUserInfo(kv, level, name, msg)
kv
-
kernel handle of type MKernelVector
level
non-negative integer
name
procedure name
msg
message to be displayed
This function can be used in external code with OpenMaple or define_external.
MapleUserInfo displays information relevant to the procedure being executed. This command is equivalent to the userinfo command. Information is displayed when infolevel[fn] = level, or infolevel[all] = level.
#include "maplec.h"
ALGEB M_DECL MyFrontEnd( MKernelVector kv, ALGEB *args )
{
ALGEB msg;
msg = MapleALGEB_SPrintf(kv,"entered with %a",args);
MapleUserInfo(kv,3,"MyFrontEnd",MapleToString(kv,msg));
return( ToMapleNULL(kv) );
}
Execute the external function from Maple.
with⁡ExternalCalling:
dll≔ExternalLibraryName⁡HelpExamples:
ui≔DefineExternal⁡MyFrontEnd,dll:
ui⁡1,2
infolevelMyFrontEnd≔3:
ui: "entered with [1, 2]"
See Also
CustomWrapper
define_external
OpenMaple
OpenMaple/C/API
OpenMaple/C/Examples
userinfo
Download Help Document