2 * hello.c -- A minimal Jim C extension.
7 Hello_Cmd(Jim_Interp
*interp
, int objc
, Jim_Obj
*const objv
[])
9 Jim_SetResultString(interp
, "Hello, World!", -1);
14 * Jim_helloworldInit -- Called when Jim loads your extension.
16 * Note that the name *must* correspond exactly to the name of the extension:
20 Jim_helloworldInit(Jim_Interp
*interp
)
22 Jim_CreateCommand(interp
, "hello", Hello_Cmd
, NULL
, NULL
);