This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// include your class here | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
void unless( const bool condition, const std::string& error ) | |
{ | |
if( !condition ) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOOST_AUTO_TEST_CASE( call_and_return_factorial ) | |
{ | |
auto code = create_code_segment( | |
// stack: [-4: n] (supplied by executor) | |
opcode::relative_load_stack, std::uint32_t( 4 ), std::int32_t( -4 ), | |
// stack: [-8: n (return value memory, to be overwritten)] [-4: n] | |
// result = factorial( n ) | |
opcode::call, label_reference( "factorial" ), | |
// stack: [factorial( n )] | |
opcode::exit, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3>P:\Programming\Libraries\boost_1_58_0\boost/variant/variant.hpp(978): error C3066: there are multiple ways that an object of this type can be called with these arguments | |
3> P:\Programming\Libraries\perseus\code\src\executable\perseus_print.cpp(37): note: could be 'void print_visitor::operator ()(const perseus::detail::ast::void_expression &) const' | |
3> P:\Programming\Libraries\perseus\code\src\executable\perseus_print.cpp(42): note: or 'void print_visitor::operator ()(const perseus::detail::ast::string_literal &) const' | |
3> P:\Programming\Libraries\perseus\code\src\executable\perseus_print.cpp(47): note: or 'void print_visitor::operator ()(uint32_t) const' | |
3> P:\Programming\Libraries\perseus\code\src\executable\perseus_print.cpp(52): note: or 'void print_visitor::operator ()(bool) const' | |
3> P:\Programming\Libraries\perseus\code\src\executable\perseus_print.cpp(57): note: or 'void print_visitor::operator ()(const perseus::detail::ast::identifier &) const' | |
3> P:\Programming\Librari |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> | |
<game | |
name="Jedi Knight Jedi Academy" | |
enginepath_win32="D:/Modding/JKA/GameData" | |
gametools_win32="D:/Modding/JKA/GameData/ZeroRadiant" | |
engine_win32="jasp.exe" | |
mp_engine_win32="jamp.exe" | |
basegame="base" | |
shaderpath="shaders" | |
default_scale="0.25" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------ | |
System Information | |
------------------ | |
Time of this report: 5/10/2012, 00:20:57 | |
Machine name: WILLI-SEVEN | |
Operating System: Windows 7 Professional 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.120305-1505) | |
Language: German (Regional Setting: German) | |
System Manufacturer: Gigabyte Technology Co., Ltd. | |
System Model: EP35-DS3 | |
BIOS: Award Modular BIOS v6.00PG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOSSEG | |
.MODEL MEDIUM ; 1x Data, Nx Code | |
.STACK | |
; Exportierte Symbole | |
PUBLIC Sortiere | |
PUBLIC Save | |
PUBLIC Restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- main menu layout: | |
-- title on top, buttons below | |
local margin = width * 0.05 | |
local titleHeight = 100 | |
local menuWidth = 400 | |
Layout | |
{ | |
name = "main", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<const std::vector<std::string> (*function)(const std::string&)> luabind::object StringVectorAsTable(const std::string& argument, lua_State* L) | |
{ | |
luabind::object result = luabind::newtable(L); | |
std::vector<std::string> vec = function(argument); | |
std::vector<std::string>::iterator end = vec.end(); | |
unsigned int index = 0; | |
for(std::vector<std::string>::iterator it = vec.begin(); it != end; ++it) | |
{ | |
result[++index] = *it; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <sstream> | |
#include <vector> | |
void printUsage() | |
{ | |
std::cout<<"Usage: echo [data] | yourProgram | wizualize <width (= height)> <output directory>"<<std::endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "astar.hpp" | |
#include "vector.hpp" | |
#include <algorithm> | |
#include <iterator> | |
#include <vector> | |
#include <queue> | |
#include <cassert> | |
using Index = int; |
OlderNewer