4coder_handmade_hero.cpp ready to go part2
This commit is contained in:
parent
d71d10434a
commit
437b69e832
|
@ -2,7 +2,7 @@
|
||||||
#define Custom_Default 0
|
#define Custom_Default 0
|
||||||
#define Custom_HandmadeHero 1
|
#define Custom_HandmadeHero 1
|
||||||
|
|
||||||
#define Custom_Current Custom_Default
|
#define Custom_Current Custom_HandmadeHero
|
||||||
|
|
||||||
#include "4coder_custom.h"
|
#include "4coder_custom.h"
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#define UseHack4Coder 0
|
#define UseHack4Coder 0
|
||||||
|
|
||||||
|
@ -54,10 +53,15 @@
|
||||||
|
|
||||||
static bool GlobalEditMode;
|
static bool GlobalEditMode;
|
||||||
static char *GlobalCompilationBufferName = "*compilation*";
|
static char *GlobalCompilationBufferName = "*compilation*";
|
||||||
|
|
||||||
|
|
||||||
|
#if UseHack4Coder
|
||||||
|
#include <windows.h>
|
||||||
static HWND GlobalModalIndicator;
|
static HWND GlobalModalIndicator;
|
||||||
static HBRUSH GlobalEditModeBrush;
|
static HBRUSH GlobalEditModeBrush;
|
||||||
static HBRUSH GlobalNormalModeBrush;
|
static HBRUSH GlobalNormalModeBrush;
|
||||||
static WNDPROC global_old_4coder_winproc;
|
static WNDPROC global_old_4coder_winproc;
|
||||||
|
#endif
|
||||||
|
|
||||||
// TODO(casey): If 4coder gets variables at some point, this would go in a variable.
|
// TODO(casey): If 4coder gets variables at some point, this would go in a variable.
|
||||||
static char BuildDirectory[4096] = "./";
|
static char BuildDirectory[4096] = "./";
|
||||||
|
@ -636,7 +640,7 @@ CUSTOM_COMMAND_SIG(casey_goto_next_error)
|
||||||
ErrorParsingPosition += (int)(ColonToken.Text - ParsingRegion);
|
ErrorParsingPosition += (int)(ColonToken.Text - ParsingRegion);
|
||||||
|
|
||||||
View_Summary compilation_view =
|
View_Summary compilation_view =
|
||||||
get_first_view_for_buffer(app, Buffer.buffer_id);
|
get_first_view_with_buffer(app, Buffer.buffer_id);
|
||||||
if(compilation_view.exists)
|
if(compilation_view.exists)
|
||||||
{
|
{
|
||||||
app->view_set_cursor(app, &compilation_view, seek_pos(ErrorParsingPosition), 1);
|
app->view_set_cursor(app, &compilation_view, seek_pos(ErrorParsingPosition), 1);
|
||||||
|
|
|
@ -9,8 +9,8 @@ SET STUFF=/GR- /nologo
|
||||||
SET DEBUG=/Zi
|
SET DEBUG=/Zi
|
||||||
SET EXPORTS=/EXPORT:get_bindings
|
SET EXPORTS=/EXPORT:get_bindings
|
||||||
SET SRC=4coder_custom.cpp
|
SET SRC=4coder_custom.cpp
|
||||||
SET LINKS=user32.lib gdi32.lib
|
REM SET LINKS=user32.lib gdi32.lib
|
||||||
REM SET LINKS=
|
SET LINKS=
|
||||||
|
|
||||||
cl %WARNINGS% %STUFF% %DEBUG% %SRC% %LINKS% /Fe4coder_custom /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS%
|
cl %WARNINGS% %STUFF% %DEBUG% %SRC% %LINKS% /Fe4coder_custom /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS%
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue