Move definition to header file
This commit is contained in:
parent
5908307885
commit
641fa9e960
|
@ -1,8 +1,5 @@
|
|||
#include "dummy.h"
|
||||
|
||||
#define MODULE_DESC "Dummy module"
|
||||
#define MODULE_VER 1.0
|
||||
|
||||
int psharp_dummy_function(ph7_context *pCtx, int nArg, ph7_value **apArg) {
|
||||
SyString dummy;
|
||||
const char *text = "Hello world from dummy module!";
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
#include "ph7.h"
|
||||
#include "ph7int.h"
|
||||
|
||||
#define MODULE_DESC "Dummy module"
|
||||
#define MODULE_VER 1.0
|
||||
|
||||
/* Forward reference & declaration */
|
||||
PH7_PRIVATE sxi32 initializeModule(ph7_vm *pVm, ph7_real *ver, SyString *desc);
|
||||
|
||||
|
|
Loading…
Reference in New Issue