diff options
Diffstat (limited to 'libgo/runtime/go-typestring.c')
-rw-r--r-- | libgo/runtime/go-typestring.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libgo/runtime/go-typestring.c b/libgo/runtime/go-typestring.c new file mode 100644 index 000000000..dcbbc6575 --- /dev/null +++ b/libgo/runtime/go-typestring.c @@ -0,0 +1,18 @@ +/* go-typestring.c -- the runtime.typestring function. + + Copyright 2010 The Go Authors. All rights reserved. + Use of this source code is governed by a BSD-style + license that can be found in the LICENSE file. */ + +#include "interface.h" +#include "go-type.h" +#include "go-string.h" + +struct __go_string typestring(struct __go_empty_interface) + asm ("libgo_runtime.runtime.typestring"); + +struct __go_string +typestring (struct __go_empty_interface e) +{ + return *e.__type_descriptor->__reflection; +} |