MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / at

Method at

common/script/scriptargs.cpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66struct Value* ScriptArgs::at(int i) const
67{
68 // picoc rejects a call with too few arguments before it ever reaches an
69 // intrinsic, so this only fires when a binding reads past its own
70 // prototype in library_checkpoint.c.
71 if (mParam == nullptr || i < 0 || i >= mNumArgs) {
72 fail("argument %d is missing (%d passed)", i + 1, mNumArgs);
73 }
74 struct Value* value = mParam[i];
75 if (value == nullptr || value->Val == nullptr) {
76 fail("argument %d has no value", i + 1);
77 }
78 return value;
79}
80
81int ScriptArgs::intAt(int i) const
82{

Callers 15

entryMethod · 0.80
folderMethod · 0.80
getTitleMethod · 0.80
indexByIdMethod · 0.80
favoriteMethod · 0.80
refreshDirectoriesMethod · 0.80
filteredSmallIconMethod · 0.80
fullPathMethod · 0.80
handleEventsMethod · 0.80
mainFunction · 0.80
entryMethod · 0.80
folderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected