Skip to content

Commit

Permalink
Better handling of dynamic include
Browse files Browse the repository at this point in the history
  • Loading branch information
erkkah committed Feb 8, 2024
1 parent 8e1a431 commit 528b573
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/amy.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ typedef struct {
uint8_t midinote;
} pcm_map_t;


#ifdef AMY_CONFIG_H
#include AMY_CONFIG_H
#else
#include "amy_config.h"
#ifndef AMY_CONFIG_H
#define AMY_CONFIG_H amy_config.h
#endif

#define QUOTED(x) #x
#define INCLUDE(x) QUOTED(x)

#include INCLUDE(AMY_CONFIG_H)

// Rest of amy setup
#define SAMPLE_MAX 32767
#define MAX_ALGO_OPS 6
Expand Down

0 comments on commit 528b573

Please sign in to comment.