aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-17 19:46:08 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-17 19:46:08 -0700
commitda6295c428271e34a9e03ce7858e12a2892dff44 (patch)
tree06075412bff755876a706ee17a336b8666f37b65 /function.h
parent86645b32e172301088517bfb860b2e0990b3e5ec (diff)
More work towards getting function.h off of shared_ptr
Diffstat (limited to 'function.h')
-rw-r--r--function.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/function.h b/function.h
index 01f5653b..2ca50255 100644
--- a/function.h
+++ b/function.h
@@ -109,9 +109,10 @@ void function_remove( const wcstring &name );
bool function_get_definition( const wcstring &name, wcstring *out_definition );
/**
- Returns the description of the function with the name \c name.
+ Returns by reference the description of the function with the name \c name.
+ Returns true if the function exists and has a nonempty description, false if it does not.
*/
-const wchar_t *function_get_desc( const wcstring &name );
+bool function_get_desc( const wcstring &name, wcstring *out_desc );
/**
Sets the description of the function with the name \c name.
@@ -141,6 +142,8 @@ wcstring_list_t function_get_names( int get_hidden );
This function does not autoload functions, it will only work on
functions that have already been defined.
+
+ This returns an intern'd string.
*/
const wchar_t *function_get_definition_file( const wcstring &name );