Move definition to header file

This commit is contained in:
Rafal Kupiec 2018-07-19 07:40:39 +02:00
parent 5908307885
commit 641fa9e960
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,5 @@
#include "dummy.h" #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) { int psharp_dummy_function(ph7_context *pCtx, int nArg, ph7_value **apArg) {
SyString dummy; SyString dummy;
const char *text = "Hello world from dummy module!"; const char *text = "Hello world from dummy module!";

View File

@ -4,6 +4,9 @@
#include "ph7.h" #include "ph7.h"
#include "ph7int.h" #include "ph7int.h"
#define MODULE_DESC "Dummy module"
#define MODULE_VER 1.0
/* Forward reference & declaration */ /* Forward reference & declaration */
PH7_PRIVATE sxi32 initializeModule(ph7_vm *pVm, ph7_real *ver, SyString *desc); PH7_PRIVATE sxi32 initializeModule(ph7_vm *pVm, ph7_real *ver, SyString *desc);