This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Visual Studio 2010 | |
// X64 Compiler Bug | |
// | |
struct IntProxy | |
{ | |
static IntProxy MakeIntProxy(int rhs) | |
{ | |
IntProxy result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// debug_stringbuf.h | |
// | |
// put this somewhere during init: | |
// | |
// debug_stringbuf_init(); | |
// | |
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _PCH_LIBC | |
#define _PCH_WINDOWS_H | |
#define _PCH_EXTLIB | |
#ifdef _PCH_LIBC | |
#include <cassert> | |
#include <cctype> | |
#include <cerrno> | |
#include <cfloat> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
// custom keys | |
{ "keys": [ "f7", ], "command": "build", }, | |
{ "keys": [ "f5", ], "command": "build", "args": { "variant": "Run" } }, | |
{ "keys": [ "ctrl+alt+o", ], "command": "show_panel", "args": { "panel": "output.exec", }, }, | |
{ "keys": [ "ctrl+,", ], "command": "focus_group", "args": { "group": 0, }, }, | |
{ "keys": [ "ctrl+.", ], "command": "focus_group", "args": { "group": 1, }, }, | |
{ "keys": [ "ctrl+shift+,", ], "command": "move_to_group", "args": { "group": 0, }, }, | |
{ "keys": [ "ctrl+shift+.", ], "command": "move_to_group", "args": { "group": 1, }, }, | |
{ "keys": [ "ctrl+shift+/", ], "command": "move_to_group", "args": { "group": 2, }, }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"animation_enabled": false, | |
"bold_folder_labels": true, | |
"caret_style": "solid", | |
//"color_scheme": "Packages/User/Monokai (SL).tmTheme", | |
"font_size": 9, | |
"highlight_line": false, | |
"ignored_packages": | |
[ | |
//"Vintageous", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mostly generated from this: | |
# http://randomartifacts.blogspot.com.au/2012/10/a-proper-cygwin-environment.html | |
# Return immediately if we are not interactive | |
[ -z "$PS1" ] && return | |
# get current git branch name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set esckeys | |
set hidden | |
set ruler | |
set visualbell | |
set showcmd | |
set wildmenu | |
set noerrorbells | |
set noexpandtab | |
set nostartofline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int bufferSize = 256; | |
int len = 0, size = 0, i, ret = -1; | |
char * str = NULL, buffer[bufferSize]; | |
// build the string | |
for(i = 0; i < a_thread->GetNumParams(); ++i) | |
{ | |
gmConcat(a_thread->GetMachine(), str, len, size, a_thread->Param(i).AsString(a_thread->GetMachine(), buffer, bufferSize), 64); | |
if(str) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// grab all the relevant constants | |
const int bufferSize = 256; | |
const int numParams = a_thread->GetNumParams(); | |
// split single-line declarations | |
int len = 0; | |
int size = 0; | |
int ret = -1; | |
// might as well zero-init the buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int bufferSize = 256; | |
const int numParams = a_thread->GetNumParams(); | |
int len = 0; | |
int size = 0; | |
int ret = -1; | |
char* str = NULL; | |
char buffer[bufferSize] = { 0 }; |
OlderNewer