Exception: Constructor now takes printf style arguments

This commit is contained in:
Jonas Kulla 2013-12-29 18:05:11 +01:00
parent 5b736bcfd6
commit 9759e52b3c
7 changed files with 20 additions and 30 deletions

View file

@ -94,9 +94,7 @@ void raiseRbExc(const Exception &exc)
RbData *data = getRbData();
VALUE excClass = data->exc[excToRbExc[exc.type]];
static char buffer[512];
exc.snprintf(buffer, sizeof(buffer));
rb_raise(excClass, buffer);
rb_raise(excClass, exc.msg.c_str());
}
int