diff options
Diffstat (limited to 'src/runtime/stack.h')
| -rw-r--r-- | src/runtime/stack.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/runtime/stack.h b/src/runtime/stack.h index 0b2cd56a92..b790e70103 100644 --- a/src/runtime/stack.h +++ b/src/runtime/stack.h @@ -7,10 +7,10 @@ enum { #ifdef GOOS_windows - StackSystem = 512 * sizeof(uintptr), +#define StackSystem (512*sizeof(uintptr)) #else #ifdef GOOS_plan9 - StackSystem = 512, +#define StackSystem (512) #else StackSystem = 0, #endif // Plan 9 @@ -23,3 +23,9 @@ enum { }; #define StackPreempt ((uint64)-1314) +/*c2go +enum +{ + StackPreempt = 1, // TODO: Change to (uint64)-1314 in Go translation +}; +*/ |
