2016-05-01 11:31:02 +08:00
|
|
|
// Prototypes for functions for storing and retrieving function information. These functions also
|
|
|
|
// take care of autoloading functions in the $fish_function_path. Actual function evaluation is
|
|
|
|
// taken care of by the parser and to some degree the builtin handling library.
|
2005-10-04 23:11:39 +08:00
|
|
|
#ifndef FISH_FUNCTION_H
|
|
|
|
#define FISH_FUNCTION_H
|
|
|
|
|
2023-05-15 02:40:18 +08:00
|
|
|
#include "cxx.h"
|
|
|
|
#include "maybe.h"
|
2005-10-04 23:11:39 +08:00
|
|
|
|
2023-05-15 02:40:18 +08:00
|
|
|
struct function_properties_t;
|
2012-01-17 04:10:08 +08:00
|
|
|
class parser_t;
|
|
|
|
|
2023-05-15 02:40:18 +08:00
|
|
|
#if INCLUDE_RUST_HEADERS
|
|
|
|
#include "function.rs.h"
|
|
|
|
#endif
|
2010-09-08 01:31:05 +08:00
|
|
|
|
2023-05-15 02:40:18 +08:00
|
|
|
maybe_t<rust::Box<function_properties_t>> function_get_props(const wcstring &name);
|
|
|
|
maybe_t<rust::Box<function_properties_t>> function_get_props_autoload(const wcstring &name,
|
|
|
|
parser_t &parser);
|
2018-02-16 13:58:02 +08:00
|
|
|
|
2005-10-04 23:11:39 +08:00
|
|
|
#endif
|