If a textual directive can't be found, ignore it.
This commit is contained in:
parent
6d22f2d56c
commit
6d4c3ffde5
1 changed files with 4 additions and 0 deletions
|
|
@ -662,6 +662,9 @@ void instance_t::define_directive(char * line)
|
||||||
void instance_t::general_directive(char * line)
|
void instance_t::general_directive(char * line)
|
||||||
{
|
{
|
||||||
char * p = next_element(line);
|
char * p = next_element(line);
|
||||||
|
if (! p)
|
||||||
|
return;
|
||||||
|
|
||||||
string word(line + 1);
|
string word(line + 1);
|
||||||
|
|
||||||
switch (*p) {
|
switch (*p) {
|
||||||
|
|
@ -703,6 +706,7 @@ void instance_t::general_directive(char * line)
|
||||||
std::strcpy(directive.get(), "dir_");
|
std::strcpy(directive.get(), "dir_");
|
||||||
std::strcpy(directive.get() + textdir_len, p);
|
std::strcpy(directive.get() + textdir_len, p);
|
||||||
|
|
||||||
|
// jww (2009-02-10): This needs some serious work.
|
||||||
if (expr_t::ptr_op_t op = lookup(directive.get())) {
|
if (expr_t::ptr_op_t op = lookup(directive.get())) {
|
||||||
call_scope_t args(*this);
|
call_scope_t args(*this);
|
||||||
args.push_back(string_value(p));
|
args.push_back(string_value(p));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue