2010-12-03 05:34:57 +01:00
|
|
|
/* 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. */
|
|
|
|
|
2012-11-01 04:02:13 +01:00
|
|
|
#include "runtime.h"
|
2010-12-03 05:34:57 +01:00
|
|
|
#include "interface.h"
|
|
|
|
#include "go-type.h"
|
|
|
|
|
2013-01-24 20:44:23 +01:00
|
|
|
String typestring(struct __go_empty_interface) __asm__ (GOSYM_PREFIX "runtime.typestring");
|
2010-12-03 05:34:57 +01:00
|
|
|
|
2012-11-01 04:02:13 +01:00
|
|
|
String
|
2010-12-03 05:34:57 +01:00
|
|
|
typestring (struct __go_empty_interface e)
|
|
|
|
{
|
|
|
|
return *e.__type_descriptor->__reflection;
|
|
|
|
}
|