cellar/include/internal/core.hpp.cog
2017-04-13 12:51:04 -07:00

31 lines
676 B
C++

// vim: filetype=cpp :
#ifndef __INTERNAL_CORE_HPP
#define __INTERNAL_CORE_HPP
#pragma once
#include <map>
#include <string>
#include "commands.hpp"
using namespace cellar::commands;
namespace cellar {
namespace core {
/*[[[cog
import cog
with open("src/core/commands.txt") as commandsfile:
for line in commandsfile:
item = line.strip().split(" ")
cog.outl("extern void {0} (int, vector<string>);".format(item[1]))
]]]*/
//[[[end]]]
}
namespace commands {
extern map<string, cellar::commands::CommandFunction> core_commands();
}
}
#endif // __INTERNAL_CORE_HPP