Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block vaualbus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vaualbus / .cpp
Created Sep 9, 2018
This file replace the msvc CRT and allow you to init static variables and TLS
View .cpp
extern "C" int _fltused = 0x9875;
#include <stdint.h>
#include <limits.h>
#include <windows.h>
//#include <Windows.h>
vaualbus / CRT Replecament initialization
Created Sep 9, 2018
This code will initialize all the static variables and set up the basic TLS context to allow static variables in function to work
View CRT Replecament initialization
#include <windows.h>
#define _CRTALLOC(x) __declspec(allocate(x))
#define nullptr 0
#define ArrayCount(Name) (sizeof(Name)/(sizeof(Name[0]))
void __acrt_iob_func()
You can’t perform that action at this time.