New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ScriptCS files that only contain a #load #139

Merged
merged 1 commit into from Mar 18, 2013

Conversation

Projects
None yet
2 participants
@PaulStovell

PaulStovell commented Mar 18, 2013

If a file only contains #load lines, the firstCode variable will be -1, so the file was never loaded. Now this scenario will be supported.

For example, take this file:

Loader.csx:

#load "config.csx"
#load "program.csx"

This file has no "first code" line, so the load lines were being skipped, resulting in nothing happening.

Support for ScriptCS files that only contain a #load.
If a file only contains #load lines, the firstCode variable will be -1, so the file was never loaded. Now this scenario will be supported.

filipw added a commit that referenced this pull request Mar 18, 2013

Merge pull request #139 from PaulStovell/dev
Support for ScriptCS files that only contain a #load

@filipw filipw merged commit 6eb2aa5 into scriptcs:dev Mar 18, 2013

@filipw

This comment has been minimized.

Show comment
Hide comment
@filipw

filipw Mar 18, 2013

Member

Great point, thanks

Member

filipw commented Mar 18, 2013

Great point, thanks

ztone pushed a commit to ztone/scriptcs that referenced this pull request May 4, 2014

Merge pull request #139 from PaulStovell/dev
Support for ScriptCS files that only contain a #load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment