Skip to content

Instantly share code, notes, and snippets.

View Dzejrou's full-sized avatar

Jaroslav Jindrak Dzejrou

View GitHub Profile
@Dzejrou
Dzejrou / stdlib.c
Last active March 14, 2018 03:56
atexit implementation
/**
* Standard requires atleast 32, but except
* for this upper bound the limit is implementation
* defined.
*/
#define ATEXIT_HANDLER_LIMIT 32
typedef void (*atexit_handler_t)(void);
static atexit_handler_t static_handlers[ATEXIT_HANDLER_LIMIT];
@Dzejrou
Dzejrou / diff.txt
Created March 14, 2018 02:07
Atexit diff
--- a/uspace/app/cpptest/main.cpp
+++ b/uspace/app/cpptest/main.cpp
@@ -1,12 +1,100 @@
+#include <iostream>
+#include <tuple>
+
+struct Foo
+{
+ Foo()
+ {