Opened 12 months ago

#6270 new change

[emscripten] Reduce the usage of raw pointers.

Reported by: sergz Assignee:
Priority: P2 Milestone:
Module: Core Keywords:
Cc: hfiguiere Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Currently from methods we have to return a raw pointer with incremented reference counter merely for the sake of bindings, because the code of bindings is working only with raw pointers right now. In order to make the code less error-prone we should rather operate smart pointers and the code, generating bindings, should take care of the incrementing the reference counter and obtaining of a raw pointer from the intrusive pointer.

Add a support in bindings generator of a return type of our intrusive_ptr<T>.

Change History (0)

Note: See TracTickets for help on using tickets.