Changeset 7a0a4c in git


Ignore:
Timestamp:
Feb 7, 2011, 5:32:08 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
e67f59d3016905a49b605b76364f25688a518f1d
Parents:
cf488668e592146bafd32ce1027dd0c6af586efa
Message:
better error message for blackbox stuff

git-svn-id: file:///usr/local/Singular/svn/trunk@13826 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/blackbox.cc

    rcf4886 r7a0a4c  
    22#include <Singular/tok.h>
    33#include <Singular/subexpr.h>
     4#include <Singular/ipshell.h>
    45#include <Singular/blackbox.h>
    56
     
    4243BOOLEAN blackbox_default_Op1(int op,leftv l, leftv r)
    4344{
    44   Werror("blackbox_Op1  of type %d for op %d not implemented",r->Typ(),op);
     45  Werror("blackbox_Op1 of type %s(%d) for op %s(%d) not implemented",
     46     getBlackboxName(r->Typ()),r->Typ(),Tok2Cmdname(op),op);
    4547  return TRUE;
    4648}
    4749BOOLEAN blackbox_default_Op2(int op,leftv l, leftv r1, leftv r2)
    4850{
    49   Werror("blackbox_Op2  of type %d for op %d not implemented",r1->Typ(),op);
     51  Werror("blackbox_Op2 of type %s(%d) for op %s(%d) not implemented",
     52     getBlackboxName(r1->Typ()),r1->Typ(),Tok2Cmdname(op),op);
    5053  return TRUE;
    5154}
    5255BOOLEAN blackbox_default_Op3(int op,leftv l, leftv r1,leftv r2, leftv r3)
    5356{
    54   Werror("blackbox_Op3 of type %d for op %d not implemented",r1->Typ(),op);
     57  Werror("blackbox_Op3 of type %s(%d) for op %s(%d) not implemented",
     58     getBlackboxName(r1->Typ()),r1->Typ(),Tok2Cmdname(op),op);
    5559  return TRUE;
    5660}
    5761BOOLEAN blackbox_default_OpM(int op,leftv l, leftv r)
    5862{
    59   Werror("blackbox_OpM of type %d for op %d not implemented",r->Typ(),op);
     63  Werror("blackbox_OpM of type %s(%d) for op %s(%d) not implemented",
     64     getBlackboxName(r->Typ()),r->Typ(),Tok2Cmdname(op),op);
    6065  return TRUE;
    6166}
Note: See TracChangeset for help on using the changeset viewer.