Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2019-02-17 05:32:51

Tomi
Member
From: France
Registered: 2018-04-30
Posts: 29

RGBDS macros

Hello all,
I know it is not a good practice to include code or data in a source file, it is better to have correctly configured makefile and project structure; but is it OK to have a file containing only macros and include it in source files?

Offline

 

#2 2019-02-18 17:44:41

ISSOtm
Member
From: Somewhere in Echo RAM
Registered: 2017-04-18
Posts: 160
Website

Re: RGBDS macros

The way I set up gb-boilerplate is, each "root" file contains two include files, one for constants and one for macros. So, it's fine.


The French Lord Of Laziness.
Legend of Zelda and Undertale fan, I also tend to break Pokémon R/B/Y a little too much.

Twitter | Me on GCL | Discord : ISSOtm#9015 | Skype : isso.tm (I don't login anymore)

Offline

 

#3 2019-02-20 13:23:28

Tomi
Member
From: France
Registered: 2018-04-30
Posts: 29

Re: RGBDS macros

Cool, thanks

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson