MapleUserInfo - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MapleUserInfo

print useful information to the user in external code

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

MapleUserInfo(kv, level, name, msg)

Parameters

kv

-

kernel handle of type MKernelVector

level

-

non-negative integer

name

-

procedure name

msg

-

message to be displayed

Description

• 

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.

Examples

    #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.

withExternalCalling:

dllExternalLibraryNameHelpExamples:

uiDefineExternalMyFrontEnd,dll:

ui1,2

infolevelMyFrontEnd3:

ui1,2

ui:   "entered with [1, 2]"

See Also

CustomWrapper

define_external

OpenMaple

OpenMaple/C/API

OpenMaple/C/Examples

userinfo