X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/2e43a0b0c288f70981ab2715c8135ac7b9cd0f1b..0c172698f8957c8238cd9915ca09eb8a2b68db97:/Error.cpp diff --git a/Error.cpp b/Error.cpp index 38d49fc..1df214d 100644 --- a/Error.cpp +++ b/Error.cpp @@ -1,5 +1,5 @@ -/* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2015 Jay Freeman (saurik) +/* Cycript - The Truly Universal Scripting Language + * Copyright (C) 2009-2016 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -30,6 +30,10 @@ CYPoolError::CYPoolError(const CYPoolError &rhs) : { } +CYPoolError::CYPoolError(const char *message) { + message_ = pool_.strdup(message); +} + CYPoolError::CYPoolError(const char *format, ...) { va_list args; va_start(args, format);