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
28
cpp_hello
my_cpp_hello
;
29
30
cpp_hello::cpp_hello
() {
31
printf(
"Hello world, from constructor.\n"
);
32
}
33
34
cpp_hello::~cpp_hello
() {
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:22
cpp_hello::~cpp_hello
~cpp_hello()
Definition:
cpp-hello.cc:34
cpp_hello::cpp_hello
cpp_hello()
Definition:
cpp-hello.cc:30
my_cpp_hello
cpp_hello my_cpp_hello
Definition:
cpp-hello.cc:28
_start
int _start(int argc, char **argv)
Definition:
cpp-hello.cc:39
erl_id
char * erl_id
Definition:
cpp-hello.cc:16
erl_dependancies
char * erl_dependancies[]
Definition:
cpp-hello.cc:17
erl.h
ee
erl
samples
cpp-hello
cpp-hello.cc
Generated on Thu Feb 11 2021 11:42:21 for ps2sdk by
1.9.2