#pragma once ///@file #include #include #include namespace nix { typedef std::function MainFunction; struct LegacyCommands { typedef std::map Commands; static Commands * commands; static void add(const std::string & name, MainFunction fun) { if (!commands) commands = new Commands; (*commands)[name] = fun; } }; }