Skip to content

Commit

Permalink
atmega: Move SNEK_POOL defines to be per-product
Browse files Browse the repository at this point in the history
This lets snek-mega offer a 6k pool while snek-duino has only 1k

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed May 2, 2019
1 parent 363a764 commit ea462d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion atmega/snek-atmega.h
Expand Up @@ -20,7 +20,6 @@
#include <avr/pgmspace.h>
#include <avr/interrupt.h>

#define SNEK_POOL 1024
#define SNEK_DEBUG 0
#define strtof(a,b) strtod(a,b)
#define VALUE_STACK_SIZE 16
Expand Down
1 change: 1 addition & 0 deletions snek-duino/snek-duino.builtin
Expand Up @@ -50,3 +50,4 @@ A3, -2, 17
A4, -2, 18
A5, -2, 19
#include <snek-atmega.h>
#define SNEK_POOL 1024
3 changes: 2 additions & 1 deletion snek-mega/snek-mega.builtin
Expand Up @@ -100,4 +100,5 @@ A13, -2, 67
A14, -2, 68
A15, -2, 69
#include <snek-atmega.h>
#include <snek-mega-math.h>
#include <snek-mega-math.h>
#define SNEK_POOL 6144

0 comments on commit ea462d9

Please sign in to comment.