Skip to content

Get script file and line number in my c++ function. #574

@i-terezie

Description

@i-terezie

I wanted to do loging from chai script to my log system, but not for errors, but for log output. For example, in the script, write:
log ("1234")
and get:
log: './test.chai'[5]: 1234

How can I do this? Having received information about the file and the line from which the call was made.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions