-
Notifications
You must be signed in to change notification settings - Fork 136
Recoup of #2517 "Implement caller"
#2603
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
Open
tontyGH
wants to merge
20
commits into
OpenDreamProject:master
Choose a base branch
from
tontyGH:caller-recoup
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+101
−24
Open
Changes from 8 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5525759
Implement `caller`
5953fe8
safer typecast
cf09089
async proc state handling and world/New() fix
137decd
recoups https://github.com/OpenDreamProject/OpenDream/pull/2517
tontyGH 4f96409
definitely not finished but this is workable
tontyGH 74b5c02
Makes PeekStack not throw if it can't find a proc in the stack
tontyGH e520b33
empty commit
tontyGH fa752ba
im not really proud of writing this
tontyGH 1517fe4
Revert "im not really proud of writing this"
tontyGH 64b8a57
This is a much better attempt
tontyGH e036cdb
style guide and whatever
tontyGH f4993e0
fixes case where callee is invoked after spawn
tontyGH f75701e
makes caller creation lazy
tontyGH 141bd13
Removes useless property from DreamThread
tontyGH 93c8dc6
we're in the homestretch now
tontyGH fb666fc
Merge branch 'master' into caller-recoup
tontyGH 42fc5ec
Adds callee reftype so that it doesn't crash the debugger when locati…
tontyGH 62101eb
This should throw instead
tontyGH 61c6860
Merge branch 'master' into caller-recoup
tontyGH 12c1150
oops
tontyGH File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #define COMPARE(a, b) if(a != b) {CRASH("Assertion failed: expected [b] got [a]")} | ||
|
|
||
| /datum/meep/proc/bar() | ||
| COMPARE("[caller.caller.caller.name]", nameof(/proc/RunTest)) | ||
|
|
||
| /datum/proc/foo() | ||
| var/datum/meep/M = new | ||
| COMPARE("[caller.name]", nameof(/proc/ihateithere)) | ||
| M.bar() | ||
|
|
||
| /proc/ihateithere() | ||
| var/datum/D = new | ||
| COMPARE("[caller.name]", nameof(/proc/RunTest)) | ||
| D.foo() | ||
|
|
||
| /proc/RunTest() | ||
| // RunTest()'s caller is null due to how unit tests are invoked | ||
| ihateithere() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.