SafeRun - Run an executable, providing pty I/O, security against output overruns, excess runtimes, and process runaways
SafeRun [options] test_subject
| #include <iostream> | |
| #include <list> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <cassert> | |
| int add(int const a, int const b) | |
| { | |
| int val = a + b; |
| #pragma once | |
| #include <vector> | |
| #include <map> | |
| #include <string> | |
| struct ID3D11Device; | |
| typedef unsigned __int64 uint64; |
| #include <GL/glew.h> | |
| #include <GLFW/glfw3.h> | |
| #include <iostream> | |
| #include <string> | |
| void PrintOpenGLErrors(char const * const Function, char const * const File, int const Line) | |
| { |
| void PrintShaderInfoLog(GLint const Shader) | |
| { | |
| int InfoLogLength = 0; | |
| int CharsWritten = 0; | |
| glGetShaderiv(Shader, GL_INFO_LOG_LENGTH, & InfoLogLength); | |
| if (InfoLogLength > 0) | |
| { |
| #include <ionWindow.h> | |
| #include <ionGraphics.h> | |
| #include <ionGraphicsGL.h> | |
| using namespace ion::Graphics; | |
| int main() | |
| { |
| #include <ionWindow.h> | |
| #include <ionGraphics.h> | |
| #include <ionGraphicsGL.h> | |
| using namespace ion::Graphics; | |
| int main() |
| glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, true); | |
| void GLAPIENTRY DebugMessageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * message, void const * userParam) | |
| { | |
| string Source = ""; | |
| string Type = ""; | |
| string Severity = ""; |