search for: haderror

Displaying 11 results from an estimated 11 matches for "haderror".

2019 Apr 05
2
Parsing code with newlines
...ystery. Error: bad value Fatal error: unable to initialize the JIT That aside, here is the code with newlines that fails to parse. I hope it will paste alright here. #include "embeddedRCall.h" #include <R_ext/Parse.h> int main(int argc, char *argv[]) { SEXP e, tmp; int hadError; ParseStatus status; init_R(argc, argv); PROTECT(tmp = mkString("\n\r ls()")); PROTECT(e = R_ParseVector(tmp, 1, &status, R_NilValue)); if (status != PARSE_OK) { printf("boo boo\n"); } else { PrintValue(e); R_tryE...
2009 May 19
2
About " Error: C stack usage is too close to the limit"
...jing PR China goon83@126.com *********************** ps: my code, system info and error information list behand ----------------------------- 1, my example code lists here: ----------------------------- #include .... void *ts_thread(){ SEXP e, tmp; int hadError; int argc = 0; char *argv[1]; ParseStatus status; init_R(argc, argv); PROTECT(tmp = mkString("{print(lh)}")); PROTECT(e = R_ParseVector(tmp, 1, &status, R_NilValue)); PrintValue(e); R_tryEval(VECTOR_ELT(e,0), R_Glob...
2007 Aug 16
0
call R function in c++ program
...ble_name"), variable_value_SEXP, rho); // for execute "complex" function (with parser) PROTECT( e1 = mkString("plot(variable_name, type=\"l\")") ); PROTECT( e2 = R_ParseVector(e1, 1, &status, R_NilValue) ); R_tryEval(VECTOR_ELT(e2,0), rho, &hadError); UNPROTECT(2); // for execute "simple" function (without parser) PROTECT( e1 = lang3(install(":"), ScalarInteger(1), ScalarInteger(4)) ); PROTECT( e2 = lang4(install("matrix"), e1, ScalarInteger(4), ScalarInteger(1)) ); PROTECT( e3 = lang2(install...
2019 Apr 10
0
Parsing code with newlines
...> > > That aside, here is the code with newlines that fails to parse. I hope > it will paste alright here. > > > #include "embeddedRCall.h" > #include <R_ext/Parse.h> > > int > main(int argc, char *argv[]) > { > SEXP e, tmp; > int hadError; > ParseStatus status; > > init_R(argc, argv); > > PROTECT(tmp = mkString("\n\r ls()")); > PROTECT(e = R_ParseVector(tmp, 1, &status, R_NilValue)); > if (status != PARSE_OK) > { > printf("boo boo\n"); >...
2009 May 18
0
About " Error: C stack usage is too close to the limit"
...jing PR China goon83@126.com *********************** ps: my code, system info and error information list behand ----------------------------- 1, my example code lists here: ----------------------------- #include .... void *ts_thread(){ SEXP e, tmp; int hadError; int argc = 0; char *argv[1]; ParseStatus status; init_R(argc, argv); PROTECT(tmp = mkString("{print(lh)}")); PROTECT(e = R_ParseVector(tmp, 1, &status, R_NilValue)); PrintValue(e); R_tryEval(VECTOR_ELT(e,0), R_Glob...
2009 May 19
0
About " Error: C stack usage is too close to the limit"--resend
...jing PR China goon83@126.com *********************** ps: my code, system info and error information list behand ----------------------------- 1, my example code lists here: ----------------------------- #include .... void *ts_thread(){ SEXP e, tmp; int hadError; int argc = 0; char *argv[1]; ParseStatus status; init_R(argc, argv); PROTECT(tmp = mkString("{print(lh)}")); PROTECT(e = R_ParseVector(tmp, 1, &status, R_NilValue)); PrintValue(e); R_tryEval(VECTOR_ELT(e,0), R_Glob...
2019 Apr 10
1
Parsing code with newlines
...with newlines that fails to parse. I hope >> it will paste alright here. >> >> >> #include "embeddedRCall.h" >> #include <R_ext/Parse.h> >> >> int >> main(int argc, char *argv[]) >> { >> SEXP e, tmp; >> int hadError; >> ParseStatus status; >> >> init_R(argc, argv); >> >> PROTECT(tmp = mkString("\n\r ls()")); >> PROTECT(e = R_ParseVector(tmp, 1, &status, R_NilValue)); >> if (status != PARSE_OK) >> { >> pri...
2017 Feb 05
2
help me understand how nounwind attribute on functions works?
from http://llvm.org/docs/LangRef.html: nounwind > This function attribute indicates that the function never raises an > exception. If the function does raise an exception, its runtime behavior is > undefined. However, functions marked nounwind may still trap or generate > asynchronous exceptions. Exception handling schemes that are recognized by > LLVM to handle asynchronous
2020 Feb 04
3
Reporting source errors from MCCodeEmitter::encodeInstruction() ?
[apologies for this duplicate post: originally sent to lldb-dev by not paying attention to the address auto-completion] We have a backend for a target that at present only detects some assembler errors when emitting instructions (basically because the platform has configurable properties with dependencies between instructions and it was easier to check for their interaction late than try to
2017 Feb 09
4
help me understand how nounwind attribute on functions works?
...<llvm-dev at lists.llvm.org> wrote: > > I think this behavior is intended to allow better LTO between C and C++. Consider this kind of code: > > // foo.h > extern "C" int doThing(bool canThrow); > // foo.cpp > int doThing(bool canThrow) { > ... > if (hadError) { > if (canThrow) throw MyException; else return -1; > } > } > // bar.c > #include "foo.h" > void f() { > doThing(false); // don't declare doThing as nounwind > } > // baz.cpp > ... > doThing(true); > > Basically, compiling a C declar...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...ve(ID)) + if (!ParseTargetDirective(ID)) return false; Warning(IDLoc, "ignoring directive for now"); @@ -801,15 +633,14 @@ bool AsmParser::ParseStatement() { Opcode.push_back(tolower(IDVal[i])); SmallVector<MCParsedAsmOperand*, 8> ParsedOperands; - bool HadError = getTargetParser().ParseInstruction(Opcode.str(), IDLoc, - ParsedOperands); + bool HadError = ParseInstruction(Opcode.str(), IDLoc, ParsedOperands); if (!HadError && Lexer.isNot(AsmToken::EndOfStatement)) HadError = TokError(&quo...