21 static auto slice_fn = mf::build::SI3_SO<std::string, int, int, std::string>(
22 "Slice", [](
const std::string &
str,
int a,
int b) {
25 str.c_str(),
str.size(), std::max(0, a +
b));
26 return str.substr(start, std::max<int>(end - start, 0));
#define NODE_CLASS_CONVERTER
int BLI_str_utf8_offset_from_index(const char *str, size_t str_len, int index_target) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void set_matching_fn(const mf::MultiFunction *fn)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static void node_build_multi_function(NodeMultiFunctionBuilder &builder)
void fn_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
NodeMultiFunctionBuildFunction build_multi_function
NodeDeclareFunction declare