Darkhog Posted May 26, 2023 Share Posted May 26, 2023 I know there's an include and inline commands, but those seem to be only for ASM (at least according to the docs). Is there really no way to include another BB file in the main source (to have a modularity instead of having everything in a single long file)? Quote Link to comment Share on other sites More sharing options...
+Karl G Posted May 26, 2023 Share Posted May 26, 2023 That is correct. It would be a handy addition, though. Quote Link to comment Share on other sites More sharing options...
KevKelley Posted May 27, 2023 Share Posted May 27, 2023 Would it be possible to maybe assemble the parts of your program separately and then have a main file with all the includes? It may be an extra step but it could make for some cleaner programming? Quote Link to comment Share on other sites More sharing options...
+Karl G Posted May 27, 2023 Share Posted May 27, 2023 2 hours ago, KevKelley said: Would it be possible to maybe assemble the parts of your program separately and then have a main file with all the includes? It may be an extra step but it could make for some cleaner programming? bB doesn't currently support includes for other bB files, only for ASM files. Quote Link to comment Share on other sites More sharing options...
KevKelley Posted May 27, 2023 Share Posted May 27, 2023 3 hours ago, Karl G said: bB doesn't currently support includes for other bB files, only for ASM files. I meant if you wrote some bB code and got the assembly for it (doesn’t Visual Batari Basic have the ability to view the assembly for what you write?) Then save that in its own file to include. Quote Link to comment Share on other sites More sharing options...
Darkhog Posted June 9, 2023 Author Share Posted June 9, 2023 Yeah, but that requires working around that and what if the code in the separate file simply CAN'T be compiled on its own since it relies on aliases defined in main source or code from other modules? Anyway, since it seems that there's no such feature, I have opened an issue on github with my thoughts on how it could be implemented. 1 Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted June 9, 2023 Share Posted June 9, 2023 In VisualbB there is an option to compile your source to an include. I think batari thought that anyone developing their own standard library of functions would want to have them pre-compiled and ready to go. That being said, one thing that stops me from making multi kernel framework games above 32k is the wrestling I have to do with batch files and the IDE. I wonder if there is some convergence here that could make multi kernel games easier. Perhaps bB BASIC code includes would be part of it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.