ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
cpp-hello.cc
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 #
10 # Hello sample
11 */
12 
13 #include <stdio.h>
14 #include <erl.h>
15 
16 char * erl_id = "cpp-hello";
17 char * erl_dependancies[] = {
18  "libc",
19  0
20 };
21 
22 class cpp_hello {
23  public:
24  cpp_hello();
25  ~cpp_hello();
26 };
27 
29 
31  printf("Hello world, from constructor.\n");
32 }
33 
35  printf("Hello world, from destructor.\n");
36 }
37 
38 extern "C" {
39 int _start(int argc, char ** argv) {
40  return 1;
41 }
42 }
~cpp_hello()
Definition: cpp-hello.cc:34
cpp_hello my_cpp_hello
Definition: cpp-hello.cc:28
int _start(int argc, char **argv)
Definition: cpp-hello.cc:39
char * erl_id
Definition: cpp-hello.cc:16
char * erl_dependancies[]
Definition: cpp-hello.cc:17