Thread "Hallo Welt" in XS (18 answers)
Opened by hlubenow at 2020-01-08 18:32

hlubenow
 2020-01-08 23:54
#191076 #191076
User since
2009-02-22
875 Artikel
BenutzerIn
[default_avatar]
Ein echtes "Hallo Welt" geht mit diesem "hallowelt.xs":
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include "ppport.h"

#include "const-c.inc"

void printHallowelt() {
printf("Hallo Welt!\n");
}

MODULE = hallowelt PACKAGE = hallowelt

void
printHallowelt()

INCLUDE: const-xs.inc

View full thread "Hallo Welt" in XS