Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
MSVC initializer code
// Initializer/finalizer sample for MSVC and GCC/Clang. // 2010-2016 Joe Lowe. Released into the public domain. #include <stdio.h> #include <stdlib.h> #pragma section(".CRT$XCU",read) static void init() { printf("initialize 1\n"); } __declspec(allocate(".CRT$XCU")) static void (*init_)() = init; static void init2() { printf("initialize 2\n"); } __declspec(allocate(".CRT$XCU")) static void (*init2_)() = init2; int main( int argc, char** argv) { printf( "main\n"); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
std::is_same doesn't check for calling convention
infix to postfix v 2.0
ambiguity does not count as ambiguity
div64 inline asm
std::function ambiguity vc++
#30.2
zero size std::array parameter
Dequeue Using STL List
Memory example
hangman
Please log in to post a comment.