Numworks Epsilon
1.4.1
Graphing Calculator Operating System
boot.cpp
Go to the documentation of this file.
1
#include <
ion.h
>
2
#include <
stdlib.h
>
3
#include <signal.h>
4
#include "
events.h
"
5
#include "
display.h
"
6
7
constexpr
int
kHeapSize
= 131072;
8
char
heap
[
kHeapSize
];
9
extern
"C"
{
10
char
*
_heap_start
= (
char
*)
heap
;
11
char
*
_heap_end
=
_heap_start
+
kHeapSize
;
12
int
main
(
int
argc,
char
* argv[]);
13
}
14
15
int
main
(
int
argc,
char
* argv[]) {
16
for
(
int
i=1; i<argc; i++) {
17
if
(
strcmp
(argv[i],
"--logAfter"
) == 0 && argc > i+1) {
18
Ion::Display::Blackbox::setFrameBufferActive
(
true
);
19
Ion::Events::Blackbox::logAfter
(atoi(argv[i+1]));
20
}
21
}
22
signal(SIGABRT,
Ion::Events::Blackbox::dumpEventCount
);
23
ion_main
(argc, argv);
24
return
0;
25
}
ion.h
ion_main
void ion_main(int argc, char *argv[])
Definition:
main.cpp:4
events.h
_heap_end
char * _heap_end
Definition:
boot.cpp:11
Ion::Events::Blackbox::logAfter
void logAfter(int numberOfEvents)
Definition:
events.cpp:40
main
int main(int argc, char *argv[])
Definition:
boot.cpp:15
kHeapSize
constexpr int kHeapSize
Definition:
boot.cpp:7
Ion::Display::Blackbox::setFrameBufferActive
void setFrameBufferActive(bool enabled)
Definition:
display.cpp:42
_heap_start
char * _heap_start
Definition:
boot.cpp:10
strcmp
int strcmp(const char *s1, const char *s2)
Definition:
strcmp.c:3
stdlib.h
heap
char heap[kHeapSize]
Definition:
boot.cpp:8
display.h
Ion::Events::Blackbox::dumpEventCount
void dumpEventCount(int i)
Definition:
events.cpp:36
epsilon
ion
src
blackbox
boot.cpp
Generated by
1.8.14