[TIMOB-20418] Hyperloop: Expose ObjC-macros in Javascript
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-03-24T12:57:31.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 5.4.0 |
| Components | Hyperloop |
| Labels | n/a |
| Reporter | Hans Knöchel |
| Assignee | Hans Knöchel |
| Created | 2016-02-17T12:50:43.000+0000 |
| Updated | 2016-07-21T23:27:36.000+0000 |
Description
A lot of important type validations during both SDK- and module-development are currently realized by using macros we provide. These are for example:
- ENSURE_TYPE(): Validate arguments to be from a specific type
- ENSURE_SINGLE_ARG_OR_NIL(): Validates the argument length or provides a fallback
- NUMINT/NUMFLOAT/NUMBOOL: Converts native types to proxy-readable NSNumbers
- DEPRECATED_REPLACE: Logs a warning for deprecated API's, commonly used inside the SDK
- RELEASE_TO_NIL: Does the common cleanup of allocated objects
The proposal would be, to bridge those macros into Javascript-methods that are pre-processed and available without any requirement, or be part of the bridged TiUtils which is discussed in TIMOB-20417.
Closing this ticket since the changes will be part of TIMOB-20417