|
![](/i/fill.gif) |
yesterday I promised bug and now I fund shortest version for report
platform: POV35b4 on PII233 128 MB with NT4 SP6
the bug is not connected with parse_string but with second inclusion
of the same file with different content (parse_string macro is example
of such usage)
here is script: for bug
//<SDL>
#include "strings.inc"
#macro Parse_Macro(Name,Params,Content)
#local String=concat(
"#macro ",Name,"(",Params,")\n",
Content,
"#end\n")
Parse_String(String)
#end
Parse_Macro("Sphere","Center,Radius","sphere{Center,Radius}")
Sphere(0,1)
Parse_Macro("Box","P1,P2","box{P1,P2}")
Sphere(1,2)
//</SDL>
here is output:
File: parse_string.tmp Line: 2
Warning: No pigment type given.
File: parse_string.tmp Line: 1
Sphere(1,2)} <----ERROR
Parse Error: Expected 'object or directive', } found instead
there is no '}' char
it looks like first macro concatenated with second one
some kind of not cleared streams/string or something
anybody can confirm ?
ABX
Post a reply to this message
|
![](/i/fill.gif) |