Jump to content
IGNORED

Including another BB file in the main source?


Darkhog

Recommended Posts

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)?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...