{"id":16693104,"url":"https://github.com/rdbo/functionmanager","last_synced_at":"2026-04-22T08:31:04.264Z","repository":{"id":118701721,"uuid":"248903013","full_name":"rdbo/FunctionManager","owner":"rdbo","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-15T19:24:53.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-29T02:14:17.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdbo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-21T03:57:36.000Z","updated_at":"2025-01-19T00:56:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"7fc29949-e1cf-4bf0-a0c9-b00159086a2a","html_url":"https://github.com/rdbo/FunctionManager","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rdbo/FunctionManager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2FFunctionManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2FFunctionManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2FFunctionManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2FFunctionManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdbo","download_url":"https://codeload.github.com/rdbo/FunctionManager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2FFunctionManager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32127767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T07:37:52.372Z","status":"ssl_error","status_checked_at":"2026-04-22T07:37:51.635Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T16:29:18.380Z","updated_at":"2026-04-22T08:31:04.244Z","avatar_url":"https://github.com/rdbo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FunctionManager\n# Usage\nUsage for fman.h + fman.cpp\nThe functions only have one type, which is \u003ci\u003efunctype\u003c/i\u003e, defined in fman.h\n```C++\nFunctionManager::Register(\"FunctionName\", []() -\u003e functype { /*function code*/ }, bOverwrite /*overwrite function with same name*/)\n```\nOBS: bOverwrite is defined as true by default in both cases\nExample:\n```C++\nFunctionManager::Register(\"ExampleFunc\", []() -\u003e functype { return 1337; }, false);\nFunctionManager::Call(\"ExampleFunc\");\n```\n2. Usage for fman.hpp\nThe functions can have any type, everything is defined on this single file (no need of fman.cpp)\nOBS: bOverwrite is defined as true by default in both cases\n```C++\nFunctionManager::Register\u003ctype_here\u003e(\"FunctionName\", []() -\u003e type_here { /*function code*/ }, bOverwrite /*overwrite function with same name*/)\n```\nExample:\n```C++\nFunctionManager::Register\u003cstd::string\u003e(\"ExampleFunc\", []() -\u003e std::string { return \"hello\"; }, false);\nFunctionManager::Call\u003cstd::string\u003e(\"ExampleFunc\");\n```\n3. Additional notes\n.To add variables into the scope of the function, put them between \\[ and ] on the lambda function. Example: \n```C++\nint a = 10;\nFunctionManager::Register\u003cvoid\u003e(\"Example\", [\u0026a]() -\u003e void { std::cout \u003c\u003c a \u003c\u003c std::endl; });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbo%2Ffunctionmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdbo%2Ffunctionmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbo%2Ffunctionmanager/lists"}