E.g

```
class foo
{
public:
    void printxx(const char* str)
    {
        printf(str);
    }
}
```

And in the script I can do



var p_str = new foo();
p_str.printxx(‘Hello World’);


**I need an example, thank you all for helping me**

How to register a C++ class to the script?
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : How to register a C++ class to the script?
Issue date:

--- start body ---
E.g

```
class foo
{
public:
    void printxx(const char* str)
    {
        printf(str);
    }
}
```

And in the script I can do



var p_str = new foo();
p_str.printxx(‘Hello World’);


**I need an example, thank you all for helping me**

--- end body ---
