我想知道我做錯了什麼,因爲控制檯給了我一個EXC_BAD_ACCESS,就在我指向下方的手臂線上。 任何指向解決方案都可能有幫助,因爲我不明白爲什麼要給我這個錯誤。EXC_BAD_ACCESS指向我的手臂線代碼
謝謝。
/*
* Copyright (c) 1999-2007 Apple Inc. All rights reserved.
*/
#ifndef _OS_OSBYTEORDERARM_H
#define _OS_OSBYTEORDERARM_H
#include <stdint.h>
#include <arm/arch.h> /* for _ARM_ARCH_6 */
#if !defined(OS_INLINE)
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
# define OS_INLINE static inline
# else
# define OS_INLINE static __inline__
# endif
#endif
* Generic byte swapping functions. */
OS_INLINE
uint16_t
_OSSwapInt16(
uint16_t data
)
{
#if defined(__llvm__)
data = (data << 8 | data >> 8);
#elif defined(_ARM_ARCH_6)
__asm__ ("rev16 %0, %1\n" : "=l" (data) : "l" (data)); <- This is the line pointed by the compiler
你是否啓用殭屍檢測? – Adis 2012-03-28 13:15:55
什麼是回溯模式? – mattjgalloway 2012-03-28 13:27:23