2017-03-24 22:06:03 -07:00
|
|
|
// 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 {
|
2017-04-13 12:51:04 -07:00
|
|
|
namespace core {
|
2017-03-24 22:06:03 -07:00
|
|
|
/*[[[cog
|
|
|
|
import cog
|
|
|
|
|
2017-04-13 12:51:04 -07:00
|
|
|
with open("src/core/commands.txt") as commandsfile:
|
2017-03-24 22:06:03 -07:00
|
|
|
for line in commandsfile:
|
|
|
|
item = line.strip().split(" ")
|
|
|
|
cog.outl("extern void {0} (int, vector<string>);".format(item[1]))
|
|
|
|
]]]*/
|
|
|
|
//[[[end]]]
|
2017-04-13 12:51:04 -07:00
|
|
|
}
|
|
|
|
namespace commands {
|
2017-03-24 22:06:03 -07:00
|
|
|
extern map<string, cellar::commands::CommandFunction> core_commands();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __INTERNAL_CORE_HPP
|