Method and device for exporting functions and classes as well as terminal and computer readable storage medium

A computer and function technology, applied in the computer field, can solve the problems of C++ code with many orders of magnitude, no data interface, and large function size, so as to reduce the number of lines of code, improve the overall accuracy, and reduce the error rate.

Active Publication Date: 2018-11-23
BEIJING ELEX TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, this solution only provides the interface of the function, but does not provide the interface of the data in the type, and the function is large in size, and it will take up a lot of package size for the C++ code.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for exporting functions and classes as well as terminal and computer readable storage medium
  • Method and device for exporting functions and classes as well as terminal and computer readable storage medium
  • Method and device for exporting functions and classes as well as terminal and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to better understand the technical solutions of the present invention, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0026] It should be clear that the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0027] Terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.

[0028] figure 1 A flowchart showing a method fo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for exporting functions and classes as well as a terminal and a computer readable storage medium. The method for exporting the functions and the classes comprises the following steps: according to an acquired export instruction, adding class functions for to-be-exported classes; calling a C function, and calling a corresponding to-be-exported function byvirtue of any of the class functions; getting out pointers of the to-be-exported classes, so that members of the to-be-exported classes produce position offset; after the members produce the positionoffset, getting out pointers of the members; and converting a result after the pointers of the to-be-exported classes and the pointers of the members are gotten out into a target data class, so as tobe exported by lua. By virtue of the technical scheme of the invention, lines of code can be greatly reduced, thus size of compiled code is reduced, human cost is reduced, error ratio also can be reduced, and the whole accuracy of coding is enhanced.

Description

【Technical field】 [0001] The present invention relates to the field of computer technology, in particular to a method and device for deriving functions and classes, a terminal and a computer-readable storage medium. 【Background technique】 [0002] At present, in the games developed based on cocos2dx, more and more lua is used for development. Using lua development can solve more online problems, and it is also easy to improve development efficiency. Then transfer the functions and data in C to To lua is the top priority of this item. [0003] The lua export mechanism that comes with cocos2dx is to export the classes and functions that need to be exported separately, and provide them to lua for use, that is, cc.Marquee:creat. The obvious advantage of this solution is that it is more convenient to use. [0004] However, this solution only provides the interface of the function, but does not provide the interface of the data in the type, and the function is large in size, and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/30A63F13/60
CPCA63F2300/60A63F13/60G06F8/30
Inventor 张涛
Owner BEIJING ELEX TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products