Skip to content

Commit

Permalink
Fail build if bank switching disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Sep 7, 2024
1 parent 08f5de2 commit c383b6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/build_checks.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#if (ENABLE_BANK_SWITCH == 0)
#error Bank switching support disabled. Build SGDK with ENABLE_BANK_SWITCH = 1
#endif
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "comm/everdrive_led.h"
#include "comm/comm_demo.h"
#include "vdp.h"
#include "build_checks.h"

int main()
{
Expand Down

0 comments on commit c383b6e

Please sign in to comment.