Skip to content

Commit 49480ad

Browse files
authored
Deprecate method retrieval in module
Mark method as deprecated to discourage direct use.
1 parent 537d30b commit 49480ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/module/module.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ class Module {
206206
}
207207

208208
/**
209+
* DEPRECATED: Module manages each Method exclusively.
210+
*
209211
* Get a method by it's name. Not recommended to use this method directly as
210212
* an end user. It's exposed to allow for composability of module in apis that
211213
* operate on method.
@@ -215,7 +217,7 @@ class Module {
215217
* @returns A Result object containing either a pointer to the requested
216218
* method or an error to indicate failure.
217219
*/
218-
ET_NODISCARD runtime::Result<Method*> method(const std::string& method_name);
220+
ET_DEPRECATED ET_NODISCARD runtime::Result<Method*> method(const std::string& method_name);
219221

220222
/**
221223
* Load the 'forward' method from the program and set up memory management if

0 commit comments

Comments
 (0)