Skip to content

Commit 648d954

Browse files
committed
updated readme with new reserved constructor
1 parent c1172af commit 648d954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Another way to start a project is using one of the following examples:
7272
[mouse jiggler](https://github.com/itzandroidtab/mouse_jiggler)
7373

7474
### Constructors before running main
75-
C++ supports global constructors for objects. These objects will be constructed before main is executed. This is supported by klib. If you want to initialize hardware before these global constructors are called you need to add the attribute `__attribute__((__constructor__(x)))` to your function definition where x is a number above 101 (the first 100 are reserved by gcc and 101 is reserved for startup code by klib). This will make sure your function will be executed before any constructor is called.
75+
C++ supports global constructors for objects. These objects will be constructed before main is executed. This is supported by klib. If you want to initialize hardware before these global constructors are called you need to add the attribute `__attribute__((__constructor__(x)))` to your function definition where x is a number above 102 (the first 100 are reserved by gcc, 101 is reserved for startup code by klib and 102 is reserved for a secondary startup code by klib). This will make sure your function will be executed before any constructor is called.
7676

7777
---
7878

0 commit comments

Comments
 (0)