Add html expression, console error and streams

This commit is contained in:
2025-04-29 05:02:54 -05:00
parent cdc72478d3
commit 295f56231d
15 changed files with 705 additions and 262 deletions

View File

@@ -239,6 +239,15 @@ namespace Tesses::CrossLang
ctx->WithSingleHeader(key,value);
return dict;
});
dict->DeclareFunction(gc,"SendStream","Send stream",{"strm"},[ctx,dict](Tesses::CrossLang::GCList &ls2, std::vector<Tesses::CrossLang::TObject> args2)->TObject{
TStreamHeapObject* strmHeapObj;
if(GetArgumentHeap(args2,0,strmHeapObj))
{
ctx->SendStream(strmHeapObj->stream);
}
return nullptr;
});
dict->DeclareFunction(gc,"SendBytes","Send bytes",{"ba"},[ctx,dict](Tesses::CrossLang::GCList &ls2, std::vector<Tesses::CrossLang::TObject> args2)->TObject{
TByteArray* ba;
if(GetArgumentHeap(args2,0,ba))