From 7c41db4c8356a92e7c913c714bf4832c8950f965 Mon Sep 17 00:00:00 2001 From: Zion Orent Date: Fri, 16 Jan 2015 09:09:35 -0500 Subject: [PATCH] gas: Modifications to js swig file to use appropriate SWIG typemap Signed-off-by: Zion Orent Signed-off-by: Jon Trulson Signed-off-by: Sarah Knepper --- src/gas/jsupm_gas.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gas/jsupm_gas.i b/src/gas/jsupm_gas.i index 98216102..28a06a68 100644 --- a/src/gas/jsupm_gas.i +++ b/src/gas/jsupm_gas.i @@ -2,6 +2,12 @@ %include "../upm.i" %include "../carrays_uint16_t.i" +%typemap(in) uint16_t * { + void *argp = 0 ; + int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint16Array, 0 | 0 ); + $1 = (uint16_t *)(argp); +} + %include "gas.h" %{ #include "gas.h"