Browse Source

Move definition to header file

pull/10/head
Rafal Kupiec 3 years ago
parent
commit
641fa9e960
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
  1. 3
      ext/dummy/dummy.c
  2. 3
      ext/dummy/dummy.h

3
ext/dummy/dummy.c

@ -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!";

3
ext/dummy/dummy.h

@ -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…
Cancel
Save