Skip to content

Commit d9685f8

Browse files
authored
Add Module API to query for the number of methods
1 parent 4e1d2e5 commit d9685f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extension/module/module.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ class Module {
138138
return program_;
139139
}
140140

141+
/**
142+
* Get the number of methods available in the loaded program.
143+
*
144+
* @returns A Result object containing either the number of methods available
145+
* or an error to indicate failure.
146+
*/
147+
runtime::Result<size_t> num_methods();
148+
141149
/**
142150
* Get a list of method names available in the loaded program.
143151
* Loads the program and method if needed.

0 commit comments

Comments
 (0)